:root {
  --primary: #0066cc;
  --primary-hover: #004c99;
  --dark: #111827;
  --dark-light: #374151;
  --gray: #6b7280;
  --gray-light: #d1d5db;
  --light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 0.5rem;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s ease;
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 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: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gap-sm {
  gap: 1rem;
}

.gap-md {
  gap: 1.5rem;
}

.gap-lg {
  gap: 2.5rem;
}

.col-span-2 {
  grid-column: span 2;
}

/* Typography & Colors */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }
.text-gray-light { color: var(--gray-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.italic { font-style: italic; }
.text-underline { text-decoration: underline; }

.h3 { font-size: 1.875rem; }
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

/* Spacing & Backgrounds */
.bg-light { background-color: var(--light); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--dark); }
.bg-light-gray { background-color: #f3f4f6; }
.bg-dark-input { background-color: rgba(255, 255, 255, 0.05); }

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 4rem; }
.pt-md { padding-top: 2rem; }
.pt-xl { padding-top: 5rem; }
.pb-sm { padding-bottom: 1rem; }
.pb-md { padding-bottom: 2rem; }
.pb-xl { padding-bottom: 5rem; }
.p-md { padding: 1.5rem; }
.p-lg { padding: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 48rem; }

/* Borders & Shadows */
.block { display: block; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.shadow-box { box-shadow: var(--shadow-lg); }
.shadow-subtle { box-shadow: var(--shadow); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-left { border-left: 1px solid var(--border); }
.border-right { border-right: 1px solid var(--border); }
.border-dark { border-color: rgba(255, 255, 255, 0.1); }
.border-dark-light { border-color: rgba(255, 255, 255, 0.1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: inherit;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--dark);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.inline-select {
  width: auto;
  display: inline-block;
}

.bg-dark-input {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.bg-dark-input::placeholder {
  color: var(--gray-light);
}

.bg-dark-input:focus {
  border-color: var(--white);
  box-shadow: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.025em;
}

.logo span {
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-light);
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 3rem 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--gray-light);
  font-weight: 300;
}

.hero-search-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2.5rem;
  text-align: left;
}

.hero-search-box label {
  color: var(--white);
}

/* Inventory Cards */
.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.car-card-img-wrap {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background-color: var(--light);
}

.car-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-img {
  transform: scale(1.05);
}

.car-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  color: var(--dark);
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.car-specs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 1rem;
  margin-top: auto;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-item svg {
  color: var(--gray);
}

/* Financing Section */
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--dark-light);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.calc-result {
  border: 1px solid var(--border);
}

.result-value {
  font-size: 2.5rem;
  line-height: 1.2;
}

/* About Section */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 999px;
  color: var(--primary);
}

/* Page Content */
.page-content p {
  margin-bottom: 1.25rem;
}

/* Footer */
.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a:hover,
.footer-bottom a:hover {
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; gap: 1rem; }
  
  .hero-title { font-size: 2.5rem; }
  .hero-section { padding-top: 6rem; min-height: 80vh; }
  
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 1.5rem;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-actions .btn {
    display: none;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .border-left, .border-right {
    border: none;
  }
  
  .sell-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 1.25rem;
  }

  .footer-bottom ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}