:root {
    --bg: #08090b;
    --bg-2: #0d0f12;
    --red: #c22a2b;
    --red-deep: #A62122;
    --red-glow: rgba(194, 42, 43, 0.45);
    --text: #f4f5f7;
    --muted: #9aa0a8;
    --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
    --glass-border: rgba(255,255,255,0.12);
    --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.14);
    --radius: 24px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

::selection { background: var(--red); color: #fff; }

/* ---------- Ambient background ---------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(194,42,43,0.16), transparent 60%),
        radial-gradient(700px 500px at -10% 40%, rgba(120,40,45,0.12), transparent 60%),
        radial-gradient(800px 600px at 60% 110%, rgba(60,70,90,0.10), transparent 60%),
        var(--bg);
}
.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(194,42,43,0.35), transparent 70%); }
.orb-2 { width: 420px; height: 420px; bottom: 5%; left: -160px; background: radial-gradient(circle, rgba(160,60,80,0.22), transparent 70%); animation-delay: -12s; animation-duration: 32s; }
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 50px) scale(1.15); }
}

/* ---------- Glass primitives ---------- */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45), var(--glass-highlight);
    border-radius: var(--radius);
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 32px));
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(20,22,26,0.65), rgba(20,22,26,0.4));
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}
header.scrolled {
    background: linear-gradient(135deg, rgba(14,15,18,0.85), rgba(14,15,18,0.65));
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo-icon { height: 44px; object-fit: contain; }
.brand .logo-text { height: 26px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links a.nav-cta {
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--red), #8f1b1c);
    box-shadow: 0 4px 18px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav-links a.nav-cta:hover { filter: brightness(1.12); }

.header-socials { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.header-socials a {
    color: var(--muted);
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: color 0.25s, background 0.25s, transform 0.25s;
}
.header-socials a:hover { color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 100px;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('/images/hero-bg.jpg') center 30% / cover no-repeat;
    animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.25) 40%, rgba(8,9,11,0.92) 88%, var(--bg) 100%),
        radial-gradient(70% 60% at 50% 45%, transparent 40%, rgba(8,9,11,0.5) 100%);
}

.hero-inner { max-width: 900px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffd9d9;
    background: linear-gradient(135deg, rgba(194,42,43,0.25), rgba(194,42,43,0.08));
    border: 1px solid rgba(255,120,120,0.25);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    margin-bottom: 26px;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ff5a5a;
    box-shadow: 0 0 12px #ff5a5a;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    font-weight: 600;
    margin-bottom: 18px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.hero h1 .accent {
    color: transparent;
    background: linear-gradient(120deg, #ff6b6b, var(--red) 45%, #7e1516);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 22px rgba(194,42,43,0.45));
}
.hero p.sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #c9cdd3;
    max-width: 620px;
    margin: 0 auto 38px;
    font-weight: 500;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.2,.9,.3,1.4), box-shadow 0.3s ease, filter 0.3s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, #8f1b1c 100%);
    box-shadow: 0 10px 30px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-glass {
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border-color: rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-glass:hover { transform: translateY(-3px); background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07)); }

.scroll-hint {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55);
    font-size: 1.3rem;
    animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* ---------- Sections ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 90px 0; }
#inventory, #why-us, #apply, #contact, #application-form { scroll-margin-top: 96px; }

.section-head { text-align: center; margin-bottom: 54px; }
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; }
.section-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }

/* ---------- Toolbar (sort + filters) ---------- */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
    margin-bottom: 36px;
    border-radius: 18px;
}
.toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.toolbar .count { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.toolbar .count strong { color: #fff; }
.select-wrap { position: relative; }
.select-wrap i {
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    font-size: 0.8rem;
}
.toolbar select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0,0,0,0.35);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 11px 44px 11px 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    outline: none;
    cursor: pointer;
    transition: border-color 0.25s;
    max-width: 100%;
}
.toolbar select:hover, .toolbar select:focus { border-color: rgba(255,255,255,0.3); }
.toolbar-row.filters { justify-content: flex-start; }
.filters .select-wrap { flex: 1 1 150px; min-width: 150px; }
.filters select { width: 100%; }
.filters select.active-filter { border-color: var(--red); color: #ffb3b3; }
.reset-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 11px 16px;
    border-radius: 999px;
    transition: color 0.25s, background 0.25s;
}
.reset-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }
.no-matches {
    display: none;
    text-align: center;
    padding: 60px 30px;
    color: var(--muted);
}
.no-matches i { font-size: 2rem; color: var(--red); margin-bottom: 14px; display: block; }
.no-matches.show { display: block; }

/* ---------- Car cards (home page) ---------- */
.car-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    margin-bottom: 44px;
    overflow: hidden;
    position: relative;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.car-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,120,120,0.28);
    box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 60px rgba(194,42,43,0.12), var(--glass-highlight);
}
.car-card.hidden { display: none; }

.car-img-section {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: block;
}
.main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}
.car-card:hover .main-img { transform: scale(1.05); }
.car-img-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(10,11,13,0.5) 100%);
    pointer-events: none;
}
.status-chip {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgba(194,42,43,0.85), rgba(126,21,22,0.85));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.status-chip.sold-chip {
    background: linear-gradient(135deg, rgba(45,47,52,0.9), rgba(18,19,21,0.9));
    border-color: rgba(255,255,255,0.18);
}
.car-card.sold .main-img, .car-card.sold .thumbnails img { filter: grayscale(0.75) brightness(0.8); }
.car-card.sold:hover { border-color: rgba(255,255,255,0.18); box-shadow: 0 30px 70px rgba(0,0,0,0.55), var(--glass-highlight); }
.sold-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.18);
}

.car-details { padding: 34px 36px; display: flex; flex-direction: column; }
.car-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: 6px; }
a.car-title-link { text-decoration: none; color: inherit; transition: color 0.25s; }
a.car-title-link:hover .car-title { color: #ff8a8a; }
.car-price {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: transparent;
    background: linear-gradient(120deg, #ff7a7a, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 22px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    min-width: 0;
}
.spec .label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.spec .value {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.car-desc p { margin: 0; }

.thumbnails { display: flex; gap: 10px; margin-top: auto; margin-bottom: 24px; flex-wrap: wrap; }
.thumbnails img {
    width: 84px; height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.thumbnails img:hover, .thumbnails img.active {
    opacity: 1;
    border-color: var(--red);
    transform: translateY(-3px);
}

.empty-inventory {
    text-align: center;
    padding: 70px 30px;
    color: var(--muted);
}
.empty-inventory i { font-size: 2.2rem; color: var(--red); margin-bottom: 16px; display: block; }

/* ---------- Car detail page ---------- */
.car-page { padding-top: 130px; padding-bottom: 40px; }
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.25s;
}
.breadcrumb:hover { color: #fff; }

.car-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    cursor: zoom-in;
}
.gallery-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease;
}
.gallery-main .expand-hint {
    position: absolute;
    right: 14px; bottom: 14px;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    pointer-events: none;
}
.sold-page .gallery-main img, .sold-page .gallery-thumbs img { filter: grayscale(0.75) brightness(0.8); }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--red);
    transform: translateY(-2px);
}

.car-info { padding: 30px; position: sticky; top: 104px; }
.car-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 8px; }
.car-info .car-price { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 24px; }
.car-info .specs-grid { margin-bottom: 8px; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.info-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.info-chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd9d9;
    background: linear-gradient(135deg, rgba(194,42,43,0.28), rgba(194,42,43,0.08));
    border: 1px solid rgba(255,120,120,0.28);
}
.info-chip.gray {
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.desc-section { margin-top: 44px; }
.desc-card { padding: 34px 36px; color: #c9cdd3; line-height: 1.85; }
.desc-card h2 { font-size: 1.3rem; margin-bottom: 14px; color: var(--text); }
.desc-card p { margin-bottom: 12px; }
.desc-card p:last-child { margin-bottom: 0; }

.more-lot { margin-top: 70px; }
.more-lot h2 { font-size: 1.6rem; margin-bottom: 24px; text-align: center; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s;
}
.mini-card:hover { transform: translateY(-6px); border-color: rgba(255,120,120,0.28); }
.mini-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.mini-card .pad { padding: 16px 18px; }
.mini-card .mini-title { font-weight: 800; font-size: 1rem; }
.mini-card .mini-price { color: #ff8a8a; font-weight: 800; font-size: 0.95rem; margin-top: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4,5,7,0.93);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 94vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    animation: lbIn 0.25s ease;
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.lb-btn {
    position: absolute;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    z-index: 2;
}
.lb-btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.06); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-count {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    padding: 34px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255,120,120,0.25); }
.feature .icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 18px;
    font-size: 1.3rem;
    color: #ffb3b3;
    background: linear-gradient(135deg, rgba(194,42,43,0.3), rgba(194,42,43,0.08));
    border: 1px solid rgba(255,120,120,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 24px rgba(194,42,43,0.15);
    margin-bottom: 20px;
}
.feature h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Application form ---------- */
.form-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 54px 50px;
    position: relative;
    overflow: hidden;
}
.form-shell::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194,42,43,0.25), transparent 70%);
    pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.25s, box-shadow 0.25s;
    resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #5f656d; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(194,42,43,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
}
.form-note {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    color: #ffd9d9;
    background: rgba(194,42,43,0.14);
    border: 1px solid rgba(255,120,120,0.3);
}
.form-note.show { display: block; }
.form-note a { color: #fff; font-weight: 700; }

/* ---------- Contact / footer ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.contact-card {
    padding: 30px 26px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s;
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(255,120,120,0.25); }
.contact-card i { font-size: 1.5rem; color: var(--red); margin-bottom: 12px; display: block; }
.contact-card .label {
    font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); display: block; margin-bottom: 6px;
}
.contact-card .value { font-weight: 700; font-size: 1rem; }

footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
    padding: 46px 20px 34px;
    text-align: center;
    margin-top: 60px;
}
footer .logo-text { height: 30px; object-fit: contain; margin-bottom: 18px; }
.social-links { margin: 6px 0 18px; }
.social-links a {
    display: inline-grid;
    place-items: center;
    width: 46px; height: 46px;
    margin: 0 6px;
    border-radius: 50%;
    color: var(--muted);
    font-size: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social-links a:hover {
    color: #fff;
    transform: translateY(-4px);
    border-color: rgba(255,120,120,0.4);
    box-shadow: 0 10px 25px rgba(194,42,43,0.25);
}
footer .fineprint { color: #565c64; font-size: 0.8rem; margin-top: 8px; }

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .features-grid, .contact-grid { grid-template-columns: 1fr; }
    .car-card { grid-template-columns: 1fr; }
    .car-img-section { min-height: 0; aspect-ratio: 16 / 9; position: relative; }
    .car-layout { grid-template-columns: 1fr; }
    .car-info { position: static; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-links a.nav-cta { padding: 9px 16px; font-size: 0.8rem; }
    .header-socials { display: none; }
    .brand .logo-text { height: 20px; }
    .brand .logo-icon { display: none; }
    section { padding: 64px 0; }
    .car-details { padding: 24px 20px; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .form-shell { padding: 34px 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .car-page { padding-top: 110px; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .desc-card { padding: 24px 20px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}
