/* =========================
   ROOT / THEME
   ========================= */
:root {
    --red-primary: #e10600;
    --red-dark: #8f0d0d;
    --text-light: #ffffff;
    --bg-dark: #0e0e0e;
}

/* =========================
   BASE
   ========================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    
}

/* =========================
   BOOTSTRAP TWEAKS
   ========================= */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

.border {
    border-color: rgba(0,0,0,.08) !important;
}

.badge.bg-success-subtle {
    background-color: #eaf7ee;
}

.badge.bg-info-subtle {
    background-color: #e8f6ff;
}

/* =========================
   CARDS
   ========================= */
.card {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
    }

/* =========================
   HEADER
   ========================= */
.main-header {
    background: var(--bg-dark);
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--red-dark);
}

    .main-header .logo {
        height: 38px;
    }

    .main-header .nav-link {
        color: var(--text-light);
        font-weight: 500;
        text-decoration: none;
    }

        .main-header .nav-link:hover {
            color: var(--red-primary);
        }

/* =========================
   HERO
   ========================= */
.hero {
    position: relative;
    height: 520px;
    background: url('https://keptor.blob.core.windows.net/car100/img/hero_bg2.webp.png') center / cover no-repeat;
    overflow: hidden;
}

    /* LEFT GRADIENT OVERLAY */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.0) 70% );
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero-content-inner {
    max-width: 520px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

    .hero h1 span {
        color: var(--red-primary);
    }

/* =========================
   HERO SEARCH
   ========================= */
.hero-search {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    max-width: 850px;
}

    .hero-search .form-select {
        border-radius: 4px;
    }

/* =========================
   MARKET SECTIONS
   ========================= */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .market-header h2 {
        font-weight: 700;
    }

    .market-header a {
        color: var(--red-primary);
        text-decoration: none;
    }

/* =========================
   CATEGORY GRID
   ========================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .category-card:hover {
        background: var(--red-primary);
        color: #fff;
    }

/* =========================
   CTA
   ========================= */
.cta-strip {
    background: #111;
    color: #fff;
    padding: 30px 0;
}

/*
    Colors
*/
/* Primary CTA */
.btn-primary {
    background: #E10600;
    color: #fff;
}

    .btn-primary:hover {
        background: #E52028;
    }

/* Secondary button */
.btn-secondary {
    background: transparent;
    color: #E52028;
    border: 2px solid #E52028;
}

    .btn-secondary:hover {
        background: #E52028;
        color: #fff;
    }