* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Prevent scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Navbar */
.navbar {
  margin: 0;
  padding: 1rem 2rem;
  width: 100%;
  box-sizing: border-box;
  background: #0d2a57;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: clamp(20px, 4vw, 26px);
}

.logo .icon {
  background: #ff8c1a;
  padding: 10px;
  border-radius: 8px;
  font-size: clamp(16px, 3vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo .highlight {
  color: #ff8c1a;
}

.menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.menu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: #ff8c1a;
  background-color: rgba(255, 140, 26, 0.1);
}

/* Main Container */
main.container {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #f5f6f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: clamp(24px, 6vw, 36px);
  margin-bottom: 10px;
  text-align: center;
  color: #0d2a57;
}

h1 span {
  color: #ff8c1a;
}

h2 {
  color: #0d2a57;
  font-size: clamp(20px, 4vw, 28px);
}

h2 span {
  color: #ff8c1a;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 16px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Vehicle Grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 20px;
}

/* Card */
.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  position: relative;
  background: #ddd;
  height: 220px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Badges */
.badge {
  position: absolute;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  z-index: 10;
}

.badge.featured {
  top: 12px;
  left: 12px;
  background: #ff8c1a;
}

.badge.year {
  top: 12px;
  right: 12px;
  background: #0d2a57;
}

/* Card body */
.card-body {
  padding: 18px;
}

.card-body h2,
.card-body h3 {
  font-size: clamp(16px, 3vw, 18px);
  margin-bottom: 8px;
  color: #0d2a57;
}

.price {
  color: #ff8c1a;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: bold;
  margin-bottom: 15px;
}

.specs {
  display: flex;
  gap: 12px;
  color: #666;
  font-size: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.specs i {
  color: #ff8c1a;
}

/* Button */
.btn {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border: none;
  background: #0d2a57;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #10356e;
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Footer */
footer {
  background: #0d2a57;
  color: #cbd5e1;
  padding: 40px 20px;
  text-align: center;
}

footer p {
  margin: 8px 0;
  font-size: clamp(14px, 2vw, 16px);
}

footer strong {
  color: #fff;
}

/* Media Queries for Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .vehicle-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }

  .menu {
    display: block !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #0d2a57;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
  }

  .vehicle-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 10px;
  }

  .container {
    padding: 0 10px;
  }

  .card-body {
    padding: 15px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .navbar {
    padding: 12px 15px;
  }

  .logo {
    font-size: 18px;
  }

  .logo .icon {
    padding: 8px;
    font-size: 16px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
  }

  .container {
    padding: 0 5px;
  }

  .card-body {
    padding: 12px;
  }

  .specs {
    gap: 8px;
    font-size: 13px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 12px;
  }

  footer {
    padding: 30px 15px;
  }

  .image-wrapper {
    height: 200px;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .navbar {
    padding: 10px 12px;
  }

  .logo {
    font-size: 16px;
  }

  .vehicle-grid {
    padding: 0;
  }

  .card-body {
    padding: 10px;
  }

  .image-wrapper {
    height: 180px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .nav-link:hover,
  .nav-link.active {
    outline: 2px solid #ff8c1a;
  }
}

/* Print styles */
@media print {
  .navbar,
  .menu,
  .btn {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
}