/* ==========================================================================
   VARIÁVEIS GLOBAIS (DESIGN SYSTEM)
   ========================================================================== */
:root {
    --primary: #0f172a;       /* Azul Escuro (Textos e Headers) */
    --secondary: #f97316;     /* Laranja Automotivo (Call to Actions) */
    --secondary-hover: #ea580c;
    --accent: #f97316;        /* Azul Vivo (Destaques secundários) */
    --bg-light: #f8fafc;      /* Fundo da página */
    --surface: #ffffff;       /* Fundo de cards */
    --text-dark: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
}

/* ==========================================================================
   RESET E BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
a { text-decoration: none; color: inherit; }
main {
    flex: 1;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar { background: var(--surface); padding: 15px 20px; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.topbar-logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
.topbar-logo svg { width: 28px; height: 28px; color: var(--secondary); }
.topbar-logo span { color: var(--secondary); }

/* ==========================================================================
   HERO SECTION (BUSCA)
   ========================================================================== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%); color: #fff; padding: 80px 20px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 60%); pointer-events: none; }
.hero h1 { font-size: 3rem; margin-bottom: 16px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.search-form { display: flex; max-width: 650px; margin: 0 auto; background: var(--surface); border-radius: 50px; padding: 6px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); position: relative; z-index: 10; }
.search-form input { flex: 1; border: none; padding: 16px 24px; font-size: 1.1rem; border-radius: 50px; outline: none; background: transparent; color: var(--primary); }
.search-form button { background: var(--secondary); color: #fff; border: none; padding: 0 35px; font-size: 1.05rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.search-form button:hover { background: var(--secondary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); }

/* ==========================================================================
   GRIDS GERAIS
   ========================================================================== */
.section-block { margin: 80px 0; }
.section-title { font-size: 2rem; color: var(--primary); margin-bottom: 30px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.section-title svg { color: var(--accent); width: 24px; height: 24px; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.brand-card { background: var(--surface); border: 1px solid var(--border); padding: 20px; text-align: center; border-radius: var(--radius); font-weight: 700; color: var(--text-dark); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand-card svg { color: var(--text-muted); width: 32px; height: 32px; transition: color 0.3s; }
.brand-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-card:hover svg { color: var(--accent); }

.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.vehicle-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.vehicle-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.vehicle-card-image-placeholder { height: 140px; background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.vehicle-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.v-brand { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 6px; }
.v-name { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1.2;}
.v-meta { display: flex; gap: 15px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.v-meta span { display: flex; align-items: center; gap: 5px; }
.v-meta svg { width: 16px; height: 16px; }
.v-price { font-size: 1.5rem; font-weight: 800; color: var(--secondary); margin-top: auto; border-top: 1px solid var(--border); padding-top: 15px;}

/* ==========================================================================
   PÁGINA INTERNA DO VEÍCULO
   ========================================================================== */
.vehicle-page { margin-top: 40px; margin-bottom: 80px; }
.breadcrumb { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 30px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--accent); font-weight: 600; }
.breadcrumb svg { width: 14px; height: 14px; }

.vehicle-header { text-align: center; margin-bottom: 40px; }
.vehicle-header h1 { font-size: 2.8rem; color: var(--primary); line-height: 1.1; font-weight: 800; letter-spacing: -1px; }

.vehicle-hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.v-image-large { background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); min-height: 300px; position: relative; overflow: hidden; }
.v-image-large svg { width: 80px; height: 80px; }

.price-showcase { background: var(--surface); border: 1px solid var(--border); padding: 40px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.price-showcase::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--secondary); }
.price-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.price-value { font-size: 3.8rem; font-weight: 800; color: var(--primary); margin: 10px 0; line-height: 1; letter-spacing: -2px;}
.price-date { font-size: 0.95rem; color: var(--text-dark); background: #f1f5f9; padding: 6px 16px; border-radius: 30px; margin-top: 15px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600;}

.seo-article { background: var(--surface); padding: 50px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 1.15rem; color: #475569; line-height: 1.8; box-shadow: var(--shadow-sm); }
.seo-article p { margin-bottom: 24px; }
.seo-article h2 { color: var(--primary); margin: 40px 0 20px 0; font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.seo-article h2::before { content: ''; display: block; width: 6px; height: 24px; background: var(--accent); border-radius: 4px; }

.ad-placeholder { background: #e2e8f0; border: 2px dashed #94a3b8; padding: 30px 20px; text-align: center; color: #64748b; font-weight: 600; border-radius: var(--radius); margin: 40px 0; }

.v-image-large, 
.vehicle-card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9; /* Trava a proporção do retângulo. Impede o CLS. */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface, #f8fafc);
}

@media (max-width: 900px) {
    .vehicle-hero-panel { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .search-form { flex-direction: column; background: transparent; box-shadow: none; padding: 0;}
    .search-form input { margin-bottom: 12px; width: 100%; border-radius: var(--radius); background: var(--surface); }
    .search-form button { width: 100%; padding: 18px; border-radius: var(--radius); justify-content: center; }
    .price-value { font-size: 3rem; }
    .seo-article { padding: 30px 20px; }
}