:root {
  --orange: #ff7a1a;
  --orange-dark: #e8670d;
  --ink: #111317;
  --muted: #6c7078;
  --line: #e7e8eb;
  --soft: #f7f7f5;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 55px rgba(24, 28, 36, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 90px 0; }
.section-shell { padding: 28px 0 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(0,0,0,.05); }
.nav-wrap { height: 78px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 12px; font-family: Manrope; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Manrope; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { font-size: 14px; font-weight: 600; color: #44484f; }
.main-nav a:hover { color: var(--orange); }
.nav-actions { display: flex; gap: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; }

.btn { border: 1px solid transparent; border-radius: 11px; padding: 12px 18px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: white; box-shadow: 0 8px 22px rgba(255,122,26,.24); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: white; border-color: var(--line); }
.btn-light { background: white; color: var(--ink); }

.hero-card { min-height: 680px; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.hero-media { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1800&q=85') center/cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,12,.75), rgba(5,8,12,.26) 55%, rgba(5,8,12,.1)), linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%); }
.hero-content { position: relative; z-index: 2; color: white; padding: 120px 64px 0; max-width: 700px; }
.eyebrow { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: #ffd4b5; margin-bottom: 16px; }
.eyebrow.dark { color: var(--orange); }
h1,h2,h3,h4 { font-family: Manrope, sans-serif; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(46px, 6vw, 76px); line-height: .98; max-width: 740px; }
.hero-content p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.84); max-width: 650px; }
.search-panel { position: absolute; z-index: 3; left: 64px; right: 64px; bottom: 46px; background: rgba(255,255,255,.96); border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.23); }
.search-panel label { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.search-panel label span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.search-panel select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-btn { padding-inline: 26px; }

.section-heading { margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 50px); }
.section-heading p { color: var(--muted); max-width: 620px; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.centered { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.centered p { margin-left: auto; margin-right: auto; }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 16px; font-weight: 700; color: #575b62; }
.tab.active, .tab:hover { background: var(--ink); color: white; border-color: var(--ink); }

.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.car-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: white; transition: .25s ease; }
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.car-image { height: 235px; background-size: cover; background-position: center; position: relative; }
.image-mercedes { background-image: url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?auto=format&fit=crop&w=900&q=80'); }
.image-bmw { background-image: url('https://images.unsplash.com/photo-1555215695-3004980ad54e?auto=format&fit=crop&w=900&q=80'); }
.image-prado { background-image: url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=900&q=80'); }
.image-mazda { background-image: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=900&q=80'); }
.image-subaru { background-image: url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=900&q=80'); }
.image-camry { background-image: url('https://images.unsplash.com/photo-1493238792000-8113da705763?auto=format&fit=crop&w=900&q=80'); }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(17,19,23,.88); color: white; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; }
.heart { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 22px; }
.heart.saved { color: var(--orange); }
.car-body { padding: 20px; }
.car-title-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.car-title-row h3 { font-size: 19px; }
.car-title-row > strong { font-size: 15px; white-space: nowrap; }
.car-year { color: var(--muted); font-size: 12px; font-weight: 700; }
.car-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #5e6269; margin: 16px 0 8px; }
.car-meta span::before { content: '•'; color: var(--orange); margin-right: 5px; }
.car-body p { color: var(--muted); font-size: 13px; min-height: 58px; }
.car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }

.section-soft { background: var(--soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: white; border: 1px solid var(--line); padding: 28px; border-radius: var(--radius-md); min-height: 235px; }
.service-card.featured { background: var(--orange); color: white; border-color: transparent; transform: translateY(-8px); }
.service-card.featured p { color: rgba(255,255,255,.78); }
.service-card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff3e9; color: var(--orange); font-weight: 800; margin-bottom: 36px; }
.service-card.featured .icon { background: rgba(255,255,255,.2); color: white; }
.service-card h3 { font-size: 20px; }
.service-card p { color: var(--muted); font-size: 14px; }

.trust-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.trust-media { position: relative; }
.trust-photo { min-height: 520px; border-radius: 26px; background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?auto=format&fit=crop&w=1200&q=85') center/cover; }
.trust-stat { position: absolute; left: 22px; bottom: 22px; background: white; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.trust-stat strong, .trust-stat span { display: block; }
.trust-stat strong { font-family: Manrope; font-size: 28px; }
.trust-stat span { color: var(--muted); font-size: 12px; }
.trust-copy h2 { font-size: clamp(36px, 4vw, 54px); }
.trust-copy > p { color: var(--muted); font-size: 16px; }
.check-list { margin-top: 30px; display: grid; gap: 12px; }
.check-list > div { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.check-list b { color: var(--orange); font-family: Manrope; }
.check-list span, .check-list strong, .check-list small { display: block; }
.check-list small { color: var(--muted); margin-top: 4px; line-height: 1.55; }

.cta-section { padding-bottom: 32px; }
.cta-card { border-radius: 28px; padding: 58px; background: #16181d; color: white; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.cta-card h2 { font-size: clamp(36px, 4vw, 52px); }
.cta-card p { color: #b8bbc2; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form input, .lead-form select { border: 1px solid #343840; background: #202329; color: white; border-radius: 12px; padding: 14px 15px; outline: 0; }
.lead-form select option { color: #111; }
.form-message { grid-column: 1 / -1; margin: 0; font-size: 13px; }

.footer { background: #0e1013; color: white; padding: 60px 0 24px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; }
.footer a, .footer p { color: #9fa3ab; font-size: 13px; display: block; margin: 7px 0; }
.footer-brand strong { color: white; }
.footer-bottom { border-top: 1px solid #252830; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; color: #737780; font-size: 12px; }

.car-dialog { border: 0; border-radius: 20px; padding: 30px; width: min(500px, calc(100% - 30px)); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.car-dialog::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 28px; }
.car-dialog h3 { font-size: 28px; margin-bottom: 10px; }
.car-dialog p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 980px) {
  .main-nav, .nav-actions { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav.open { position: absolute; top: 78px; left: 20px; right: 20px; display: grid; background: white; padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }
  .hero-card { min-height: 760px; }
  .hero-content { padding: 90px 32px 0; }
  .search-panel { left: 32px; right: 32px; grid-template-columns: 1fr 1fr; }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { transform: none; }
  .trust-grid, .cta-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 68px 0; }
  .hero-card { min-height: 810px; border-radius: 22px; }
  .hero-content { padding: 64px 22px 0; }
  h1 { font-size: 46px; }
  .hero-content p { font-size: 15px; }
  .search-panel { left: 14px; right: 14px; bottom: 14px; grid-template-columns: 1fr; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .inventory-grid, .services-grid { grid-template-columns: 1fr; }
  .trust-grid { gap: 30px; }
  .trust-photo { min-height: 380px; }
  .cta-card { padding: 34px 22px; }
  .lead-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
