@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #E30613; /* O Vermelho Rocha */
    --primary-gradient: linear-gradient(180deg, #E30613 0%, #a1040a 100%);
    --carbon: #0A0B10; /* Preto da borda do logo */
    --silver: #E2E8F0; /* Prata metálico */
    --bg-white: #FFFFFF;
    --text-dark: #12141D;
    --text-gray: #64748B;
    --max-width: 1300px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

* { margin:0; padding:0; box-sizing: border-box; }
body { 
    background: var(--bg-white); 
    color: var(--text-dark); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .outfit { font-family: 'Outfit', sans-serif; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Navbar Carbon Edition (Matches Logo Black) ── */
.nav-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 95px;
    background: var(--carbon);
    border-bottom: 2px solid #1E293B;
    z-index: 2000;
}

.nav-wrapper nav {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img { height: 62px; width: auto; filter: drop-shadow(0 0 10px rgba(227,6,19,0.3)); }

.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a { 
    text-decoration: none; 
    color: #FFFFFF; 
    font-weight: 600; 
    font-size: 0.98rem; 
    transition: 0.3s;
    opacity: 0.85;
}
.nav-links a:hover { color: var(--primary); opacity: 1; }

.nav-actions { display: flex; gap: 20px; align-items: center; }
.btn-login { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.btn-vender {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 15px rgba(227, 6, 19, 0.25);
}
.btn-vender:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(227, 6, 19, 0.4); }

/* ── Hero Edition ── */
.hero {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.9)), url('../images/hero_car_background.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 95px;
}

.hero h1 { font-size: 3.5rem; font-weight: 900; color: var(--carbon); margin-bottom: 20px; letter-spacing: -2px; }
.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ── Search Bar Carbon Clean ── */
.search-container {
    max-width: 1100px;
    margin: -75px auto 0;
    position: relative;
    z-index: 100;
}

.search-bar {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
    border: 1px solid var(--silver);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
}

.search-group label { display: block; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; color: var(--text-gray); }
.search-group select, .search-group input {
    width: 100%; border: 1px solid var(--silver); padding: 15px; border-radius: 12px; font-size: 0.95rem; outline: none; background: #F8FAFC; color: var(--carbon);
}

.btn-search {
    background: var(--carbon);
    color: white;
    border: none;
    padding: 0 45px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    height: 54px;
    font-family: 'Outfit', sans-serif;
}
.btn-search:hover { background: var(--primary); transform: scale(1.03); }

/* ── Sections ── */
section { padding: 80px 40px; }
.section-header { margin-bottom: 45px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--silver); padding-bottom: 25px; }
.section-header h2 { font-size: 2.2rem; font-weight: 900; color: var(--carbon); }
.section-header h2 span { color: var(--primary); }

/* ── Vehicle Cards Platinum ── */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
}

.vehicle-card {
    background: white;
    border-radius: 28px;
    border: 1px solid var(--silver);
    overflow: hidden;
    transition: 0.4s;
}

.vehicle-card:hover { 
    transform: translateY(-12px); 
    border-color: var(--primary); 
    box-shadow: 0 40px 90px rgba(0,0,0,0.06); 
}

.card-image { height: 240px; background-size: cover; background-position: center; position: relative; border-bottom: 1px solid #F1F5F9; }
.card-content { padding: 30px; }
.card-content h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 12px; color: var(--carbon); letter-spacing: -0.5px; }
.card-price { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 20px; }

.card-stats { 
    display: flex; gap: 15px; border-top: 1px solid #F1F5F9; padding-top: 25px; 
    color: var(--text-gray); font-size: 0.9rem; font-weight: 700;
}

/* ── Footer Carbon ── */
footer {
    background: var(--carbon);
    color: white;
    padding: 100px 40px 50px;
}

.footer-grid { 
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; 
}
.footer-brand img { height: 50px; margin-bottom: 30px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.8; }

.footer-links h4 { font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; font-weight: 500; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); padding-left: 8px; }

.footer-bottom { 
    margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05);
    max-width: var(--max-width); margin-left: auto; margin-right: auto;
    text-align: center; color: rgba(255,255,255,0.3); font-size: 0.85rem;
}

@media (max-width: 1000px) {
    .nav-links { display: none; }
    .search-bar { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.6rem; }
}
