/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  color: #1971d4;
}

.logo a {
  color: #1971d4;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1971d4;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #1971d4;
  color: #fff;
}

.btn-primary:hover {
  background-color: #155ba8;
}

.btn-secondary {
  background-color: #333;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #555;
}

.btn-outline {
  background-color: transparent;
  color: #1971d4;
  border: 2px solid #1971d4;
}

.btn-outline:hover {
  background-color: #1971d4;
  color: #fff;
}

.btn-full {
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn-link {
  background: none;
  color: #1971d4;
  padding: 0.5rem;
  text-decoration: underline;
}

/* Homepage Hero */
.hero {
  background: linear-gradient(135deg, #1971d4 0%, #155ba8 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Featured Vehicles Section */
.featured-vehicles {
  padding: 4rem 0;
  background-color: #fff;
}

.featured-vehicles h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #333;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vehicle-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.vehicle-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.vehicle-info {
  padding: 1.5rem;
}

.vehicle-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.vehicle-details {
  color: #666;
  margin-bottom: 1rem;
}

.vehicle-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1971d4;
  margin-bottom: 1rem;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 4rem 0;
  background-color: #f5f5f5;
}

.why-choose-us h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Vehicle Details Page */
.vehicle-details-page {
  background-color: #fff;
  padding: 2rem 0;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #1971d4;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.vehicle-header {
  margin-bottom: 2rem;
}

.vehicle-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.vehicle-meta {
  color: #666;
  font-size: 0.95rem;
}

.vehicle-meta span {
  margin-right: 1.5rem;
}

.vehicle-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Left Column */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vehicle-gallery {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.main-image {
  margin-bottom: 1rem;
}

.main-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.thumbnail-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.thumbnail {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail:hover {
  border-color: #1971d4;
}

.vehicle-description,
.vehicle-specs,
.vehicle-features {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.vehicle-description h2,
.vehicle-specs h2,
.vehicle-features h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-item dt {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.spec-item dd {
  color: #333;
  font-size: 1rem;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.features-list li {
  padding-left: 1.5rem;
  position: relative;
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1971d4;
  font-weight: bold;
}

/* Right Column */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.price-box {
  background: #fff;
  border: 2px solid #1971d4;
  border-radius: 8px;
  position: sticky;
  top: 80px;
}

.price-section {
  padding: 1.5rem;
  background: linear-gradient(135deg, #1971d4 0%, #155ba8 100%);
  color: #fff;
  border-radius: 6px 6px 0 0;
  text-align: center;
}

.price-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.price-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.msrp {
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.8;
}

.savings {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-section {
  padding: 1.5rem;
}

.contact-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.contact-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.contact-info h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.payment-calculator {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.payment-calculator h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #333;
}

.payment-estimate {
  text-align: center;
  margin-bottom: 1rem;
}

.payment-amount {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1971d4;
}

.payment-details {
  font-size: 0.85rem;
  color: #666;
}

.quick-facts {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.quick-facts h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.quick-facts ul {
  list-style: none;
}

.quick-facts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  color: #666;
  font-size: 0.9rem;
}

.quick-facts li:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vehicle-content {
    grid-template-columns: 1fr;
  }

  .right-column {
    order: -1;
  }

  .price-box {
    position: static;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .vehicle-header h1 {
    font-size: 1.5rem;
  }
}

.footer-link:link,
.footer-link:visited,
.footer-link:hover,
.footer-link:active {
  color: inherit;
  /* Optional: you can apply specific styles for hover/active states if desired, e.g., */
  /* text-decoration: underline; */
}
