/* ─── Base ─────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ─── Gradient text ─────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #cf3e3f 0%, #e85d5e 60%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-white {
    background: linear-gradient(135deg, #ffffff 0%, #fecaca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #cf3e3f, #e85d5e);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207, 62, 63, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(207, 62, 63, 0.55);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid rgba(207, 62, 63, 0.5);
    color: #cf3e3f;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(207, 62, 63, 0.08);
    border-color: #cf3e3f;
}

.btn-white {
    background: #fff;
    color: #cf3e3f;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* ─── Navbar ─────────────────────────────────────── */
.navbar-solid {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-transparent {
    background: transparent;
}

.navbar-dark-mode {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
}

/* ─── Glass cards ────────────────────────────────── */
.glass-white {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── AI badge ───────────────────────────────────── */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(207, 62, 63, 0.12), rgba(232, 93, 94, 0.08));
    border: 1px solid rgba(207, 62, 63, 0.25);
    color: #cf3e3f;
}

.ai-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cf3e3f;
    animation: pulse 2s infinite;
}

/* ─── Section divider ────────────────────────────── */
.section-divider {
    background: linear-gradient(90deg, transparent, rgba(207, 62, 63, 0.4), transparent);
    height: 1px;
}

/* ─── Card hover lift ────────────────────────────── */
.card-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ─── Vehicle card ───────────────────────────────── */
.vehicle-card:hover .vehicle-img {
    transform: scale(1.05);
}

/* ─── Form inputs ────────────────────────────────── */
.form-input:focus {
    outline: none;
    border-color: #cf3e3f;
    box-shadow: 0 0 0 3px rgba(207, 62, 63, 0.12);
}

select.form-input:focus {
    border-color: #cf3e3f;
}

/* ─── Dropdown menu ──────────────────────────────── */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    display: block;
}

.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ─── Mobile menu ────────────────────────────────── */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cf3e3f;
    border-radius: 3px;
}

/* ─── Animated gradient border ───────────────────── */
.gradient-border {
    position: relative;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, #cf3e3f, #e85d5e, #cf3e3f);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    z-index: 0;
    opacity: 0.6;
}

.gradient-border>* {
    position: relative;
    z-index: 1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ─── Hero pattern ───────────────────────────────── */
.hero-pattern {
    background-image: radial-gradient(rgba(207, 62, 63, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ─── Stat counter ───────────────────────────────── */
.stat-item {
    border-left: 3px solid #cf3e3f;
    padding-left: 16px;
}