:root {
    --gray-bg: #f4f4f4;
    --dark: #1a1a1a;
    --red: #d32f2f;
    --white: #ffffff;
    --head-font: 'Oswald', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

body { background: var(--gray-bg); color: var(--dark); font-family: var(--body-font); overflow-x: hidden; }

.nav-bar { position: sticky; top: 0; z-index: 99; padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; background: var(--dark); color: var(--white); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.nav-logo { font-family: var(--head-font); font-size: 2.5rem; letter-spacing: 1px; }
.nav-menu { display: flex; gap: 2rem; }
.nav-menu a { color: var(--white); text-decoration: none; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
.nav-menu a:hover { color: var(--red); }

.hero-auto { height: 80vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/hero.jpg') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 5%; }
.hero-inner h2 { font-family: var(--head-font); font-size: 4.5rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.hero-inner p { font-size: 1.2rem; margin-bottom: 3rem; opacity: 0.9; }

.btn-group { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 1rem 3rem; font-family: var(--head-font); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; text-decoration: none; transition: 0.3s; border: 2px solid transparent; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #b71c1c; }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }

.trust-bar { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 3rem 5%; background: var(--red); color: var(--white); text-align: center; }
.trust-item h3 { font-family: var(--head-font); font-size: 2.5rem; margin-bottom: 0.5rem; }
.trust-item p { font-weight: 600; text-transform: uppercase; }

.inventory { padding: 8rem 5%; }
.section-top { text-align: center; font-family: var(--head-font); font-size: 3rem; margin-bottom: 4rem; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.car-card { background: var(--white); border-radius: 5px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.car-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.car-card img { width: 100%; height: 220px; object-fit: cover; }
.c-info { padding: 1.5rem; }
.c-info h3 { font-family: var(--head-font); font-size: 1.5rem; margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-size: 1.5rem; color: var(--red); font-weight: 700; margin-bottom: 1rem; }
.specs { list-style: none; display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 1rem; font-size: 0.9rem; color: #666; font-weight: 600; }

.sell-car { padding: 8rem 5%; background: var(--dark); color: var(--white); display: flex; justify-content: center; }
.sell-box { width: 100%; max-width: 700px; text-align: center; }
.sell-box h2 { font-family: var(--head-font); font-size: 3.5rem; color: var(--red); margin-bottom: 1rem; }
form { margin-top: 3rem; background: rgba(255,255,255,0.05); padding: 3rem; border-radius: 10px; }
.flex-form { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
input { flex: 1; padding: 1rem; background: var(--white); border: none; font-family: var(--body-font); font-size: 1rem; outline: none; border-radius: 4px; }
input:focus { box-shadow: 0 0 0 3px rgba(211,47,47,0.5); }

.footer { padding: 6rem 5%; background: #111; color: #ccc; border-top: 5px solid var(--red); }
.f-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; }
.footer h2 { font-family: var(--head-font); font-size: 2.5rem; color: var(--white); margin-bottom: 0.5rem; }
.f-legal a { display: block; color: #888; text-decoration: none; margin-bottom: 0.5rem; transition: 0.3s; }
.f-legal a:hover { color: var(--white); }

.cookie-banner { position: fixed; bottom: 0; width: 100%; background: var(--dark); color: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; font-weight: 600; }
.cookie-banner a { color: var(--red); text-decoration: underline; }
.cookie-banner button { background: var(--red); color: var(--white); border: none; padding: 8px 20px; font-weight: bold; cursor: pointer; border-radius: 3px; }

.reveal { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) { .flex-form { flex-direction: column; } .nav-menu { display: none; } }
