:root {
    /* Showroom Palette */
    --primary: #E63946;
    /* Dynamic Red */
    --secondary: #1D3557;
    /* Corporate Blue */
    --dark: #111111;
    --light: #F1FAEE;
    --bg-body: #FFFFFF;
    --text-main: #333333;
    --text-light: #666666;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    /* Wider for showroom feel */
    --header-height: 90px;

    /* UI */
    --radius: 0px;
    /* Sharp edges for modern look */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="electric-blue"] {
    --primary: #4CC9F0;
    /* Electric Blue */
    --secondary: #4361EE;
    /* Deep Blue */
    --dark: #0B0C10;
    --bg-body: #F0F5F9;
}

[data-theme="luxury-black"] {
    --primary: #D4AF37;
    /* Gold */
    --secondary: #000000;
    /* Black */
    --dark: #000000;
    --bg-body: #121212;
    --text-main: #EEEEEE;
    --text-light: #AAAAAA;
    --light: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--bg-body);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 900;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-quote {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-quote:hover {
    background: var(--secondary);
}

/* Hero Slider (Static for template) */
.hero {
    height: 600px;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    padding-left: 2rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Bar Floating */
.search-bar-container {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    margin-bottom: 4rem;
}

.search-bar {
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: var(--font-body);
}

.btn-search {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: var(--primary);
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.category-card:hover::before {
    background: rgba(230, 57, 70, 0.8);
    /* Primary color overlay */
}

.category-title {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
}

/* Featured Cars */
.featured {
    padding: 6rem 0;
    background: var(--light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--bg-body);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.car-card:hover {
    transform: translateY(-10px);
}

.car-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.car-info {
    padding: 1.5rem;
}

.car-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.car-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.car-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

.car-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Import Service */
.import-section {
    padding: 6rem 0;
    background: var(--secondary);
    color: white;
    text-align: center;
}

.import-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}