/* assets/css/style.css */
:root {
    --primary-dark: #080D14;
    --secondary-dark: #111923;
    --white: #FFFFFF;
    --soft-bg: #F5F6F8;
    --text-dark: #111827;
    --muted-text: #6B7280;
    --accent-red: #D71920;
    --border: #E5E7EB;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--text-dark); background: var(--soft-bg); line-height: 1.6; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.hidden { display: none !important; }

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 700; color: var(--accent-red); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; font-weight: 600; font-size: 0.9rem; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; text-align: center; border: none; }
.btn-primary { background: var(--accent-red); color: var(--white); }
.btn-primary:hover { background: #b5151b; }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); }
.btn-text { color: var(--accent-red); padding: 0; background: transparent; font-weight: 700; }
.full-width { width: 100%; }

/* Utility & Nav */
.utility-bar { background: var(--primary-dark); color: var(--muted-text); font-size: 0.8rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.utility-flex { display: flex; justify-content: space-between; }
.navbar { background: var(--primary-dark); padding: 20px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.brand-logo a { color: var(--white); font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }
.nav-links a { color: var(--white); text-decoration: none; margin-left: 24px; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-red); }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; }

/* Hero */
.hero { position: relative; height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,20,0.9) 0%, rgba(8,13,20,0.4) 100%); z-index: -1; }
.hero-content { color: var(--white); max-width: 600px; animation: fadeUp 1s ease forwards; }
.hero-btns { margin-top: 2rem; display: flex; gap: 1rem; }

/* Search Panel */
.search-panel-section { margin-top: -50px; position: relative; z-index: 10; }
.search-panel { background: var(--secondary-dark); padding: 30px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); color: white; }
.search-panel h3 { margin-bottom: 20px; font-size: 1.1rem; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.search-grid select { padding: 12px; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 4px; outline: none; }

/* Inventory Grid */
.section-padding { padding: 5rem 0; }
.center { text-align: center; }
.category-tabs { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0 3rem; flex-wrap: wrap; }
.tab-btn { background: transparent; border: 1px solid var(--border); padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; font-family: var(--font-primary); transition: 0.3s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary-dark); color: white; border-color: var(--primary-dark); }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.car-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid var(--border); }
.car-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.car-image { position: relative; height: 200px; }
.car-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 15px; left: 15px; background: rgba(8,13,20,0.9); color: white; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 4px; }
.car-details { padding: 20px; }
.car-title { font-size: 1.1rem; margin-bottom: 10px; }
.car-specs { display: flex; justify-content: space-between; color: var(--muted-text); font-size: 0.85rem; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.car-price-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); }

/* Trust Strip */
.trust-section { background: var(--primary-dark); color: white; padding: 4rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.trust-item h4 { color: var(--accent-red); margin-bottom: 10px; }
.trust-item p { font-size: 0.9rem; color: #a1a1aa; }

/* Split Section */
.split-section { display: grid; grid-template-columns: 1fr 1fr; background: white; }
.split-image img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.split-content { padding: 6rem 10%; display: flex; flex-direction: column; justify-content: center; }
.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li { padding-left: 25px; position: relative; margin-bottom: 10px; font-weight: 500; }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-red); }

/* Footer */
.footer { background: var(--secondary-dark); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col a { display: block; color: var(--muted-text); text-decoration: none; margin-bottom: 0.5rem; }
.footer-col p { color: var(--muted-text); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: var(--muted-text); }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.modal-content { background: white; max-width: 900px; width: 100%; border-radius: 8px; overflow: hidden; position: relative; animation: slideUp 0.3s ease; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; cursor: pointer; line-height: 1; z-index: 10; color: var(--primary-dark); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 40px; }
.modal-price { font-size: 1.5rem; font-weight: 800; color: var(--accent-red); margin: 10px 0 20px; }
.modal-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; font-size: 0.9rem; }
.modal-desc { color: var(--muted-text); margin-bottom: 30px; font-size: 0.95rem; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero { height: 75vh; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .split-section { grid-template-columns: 1fr; }
    .split-content { padding: 4rem 5%; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-image { height: 250px; }
    .modal-info { padding: 20px; }
}
