/* Automotive Themed Core CSS */
:root {
  --primary-color: #d32f2f; /* Premium Automotive Red Accent */
  --primary-dark: #b71c1c;
  --bg-dark: #111827;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border-color); sticky: top; z-index: 1000; position: sticky; top: 0; }
.top-bar { background: var(--bg-dark); color: #d1d5db; font-size: 0.85rem; padding: 8px 0; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; }
.top-phone { color: #fff; text-decoration: none; font-weight: 600; }
.main-header { padding: 15px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo h2 { color: var(--primary-color); font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }

.site-nav ul { display: flex; gap: 25px; list-style: none; }
.site-nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.site-nav a.active, .site-nav a:hover { color: var(--primary-color); }
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--border-color); background: #fff; color: var(--text-main); }
.btn-outline:hover { background: #f3f4f6; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, rgba(17,24,39,0.9), rgba(17,24,39,0.7)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80') center/cover; color: #fff; padding: 80px 0; text-align: center; }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.25rem; color: #d1d5db; margin-bottom: 30px; }

/* Quick Search Panel */
.search-panel { background: #fff; border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 10; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; color: var(--text-muted); }
.form-control { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.95rem; }

/* Grid & Cards */
.section-title { font-size: 2rem; font-weight: 800; margin: 40px 0 20px 0; }
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.car-card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; height: 200px; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #fff; }
.badge-featured { background: var(--primary-color); }
.badge-sold { background: #374151; }
.badge-reserved { background: #d97706; }

.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.car-title { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.car-variant { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 12px; }
.car-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.85rem; color: var(--text-muted); padding: 10px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 15px; }
.card-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.main-price { font-size: 1.35rem; font-weight: 800; color: var(--primary-color); }
.old-price { font-size: 0.85rem; color: var(--text-muted); margin-left: 6px; }
.location-tag { font-size: 0.8rem; color: var(--text-muted); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* Sticky Mobile Bar */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border-color); z-index: 999; padding: 10px 15px; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* Responsive Rules */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .mobile-nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--border-color); }
  .site-nav.active { display: block; }
  .site-nav ul { flex-direction: column; gap: 15px; }
  .header-action-desktop { display: none; }
  .top-bar { display: none; }
  .mobile-bottom-bar { display: grid; }
  body { padding-bottom: 60px; }
}

/* Footer */
.site-footer { background: var(--bg-dark); color: #9ca3af; padding: 50px 0 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 15px; }
.footer-col a { color: #9ca3af; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 20px 0; text-align: center; font-size: 0.85rem; }