* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

/* Navbar */
nav {
  background-color: #3a4859;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
}
nav .logo img {
  height: 100px;
}
.navbar {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

.navbar li {
  position: relative;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  display: inline-block;
  transition: background-color 0.3s;
}

.navbar a:hover {
  background-color: #357abd;
  border-radius: 4px;
}

.dropdown {
  position: relative;
}

/* Hide dropdown first */
.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;

  background: #ffffff;
  padding: 15px;
  border-radius: 5px;
  min-width: 300px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);

  display: block;
  z-index: 999;
}
.dropdown-menu li {
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  display: grid !important;
}
.dropdown-menu li a {
  color: #333;
  padding: 8px 0;
  display: block;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  color: #007bff;
}

/* Hero Section */
.hero {
  background: url("../images/leo_visions-dVSKKZBxQF8-unsplash.jpg") no-repeat
    center center/cover;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: #4a90e2;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #357abd;
}

.featured {
  padding: 40px 20px;
  text-align: center;
}

.inventory-grid h1 {
  margin-bottom: 30px;
  color: #3a4859;
  text-align: center;
}

.inventory-grid h2 {
  margin-bottom: 30px;
  color: #3a4859;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(330px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}
.card {
  background-color: #fff;
  max-width: 420px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 6px;
}

.card-info {
  padding: 15px;
  text-align: left;
}

.card-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.card-info .price {
  color: #4a90e2;
  font-weight: 600;
  margin-bottom: 5px;
}

.card-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.btn-info {
  display: inline-block;
  padding: 6px 12px;
  background-color: #4a90e2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.btn-info:hover {
  background-color: #357abd;
}

/* Footer */
footer {
  background-color: #3a4859;
  color: #fff;
  padding: 40px 20px 20px 20px;
}

.footer-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
}

.footer-content div {
  flex: 1;
  min-width: 200px;
}

.footer-content h3,
.footer-content h4 {
  color: #4a90e2;
  margin-bottom: 10px;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #555;
  padding-top: 10px;
  font-size: 14px;
  color: #bbb;
}
h2 {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 28px;
  color: #3a4859;
}

/* Testimonials Section */
.testimonials {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.testimonials h2 {
  color: #3a4859;
  margin-bottom: 30px;
  font-size: 28px;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.testimonial-card {
  flex: 1 1 200px;
  max-width: 220px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-card img {
  width: 50px;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-size: 14px;
  color: #555;
}

/* CTA / Financing Section */
.cta-financing {
  padding: 50px 20px;
  background-color: #3a4859;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  margin: 40px 0;
}

.cta-financing h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.cta-financing p {
  font-size: 16px;
  margin-bottom: 25px;
}

.cta-financing .btn-primary {
  background-color: #fff;
  color: #4a90e2;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.cta-financing .btn-primary:hover {
  background-color: #357abd;
  color: #fff;
}

.info-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.info-box {
  flex: 1 1 220px;
  max-width: 250px;
  background-color: #ffffff;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.info-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.info-box p {
  font-size: 14px;
  color: #666;
}

/* HAMBURGER ICON */
.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
/* ======= Responsive Media Queries ======= */

/* Small devices - mobile phones */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-bottom: 20px;
  }

  .navbar {
    display: none; /* hidden by default */
    position: absolute; /* dropdown style */
    top: 100%; /* below nav */
    right: 0; /* align with hamburger */
    width: 200px;
    flex-direction: column;
    gap: 10px;
    background-color: #3a4859;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
  }

  /* Show menu when active */
  .navbar.active {
    display: flex;
  }

  .dropdown-menu {
    position: static !important;
    display: none !important;
    grid-template-columns: 1fr !important;
  }

  .dropdown:hover .dropdown-menu {
    display: block !important;
  }
  nav {
    flex-direction: row; /* keep logo and hamburger in one row */
    justify-content: space-between; /* logo left, hamburger right */
    align-items: center;
    padding: 10px 20px;
    position: relative;
  }

  nav .logo img {
    height: 70px;
    margin-bottom: 10px;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }
  .hero {
    height: 300px;
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    justify-items: center;
  }
  .card {
    width: 90%;
    max-width: 350px;
  }
  .testimonial-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    justify-items: center;
  }
  .testimonial-card {
    width: 90%;
    max-width: 300px;
  }
  .info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
  .info-box {
    width: 90%;
    max-width: 300px;
  }

  .card,
  .testimonial-card,
  .info-box {
    width: 90%;
    max-width: 300px;
  }
  .dropdown-menu {
    grid-template-columns: 1fr;
    min-width: 200px;
  }

  /* Buttons / links */
  .btn-primary,
  .btn-info {
    width: 100%;
    text-align: center;
  }
}

/* Medium devices - tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards,
  .testimonial-cards,
  .info-section {
    justify-content: center;
    gap: 15px;
  }

  .card,
  .testimonial-card,
  .info-box {
    width: 45%;
    max-width: 300px;
  }

  .hero {
    height: 350px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.1em;
  }
}

/* small tweaks for very large screens */
@media (min-width: 1440px) {
  .cards,
  .testimonial-cards,
  .info-section {
    gap: 30px;
  }

  .card,
  .testimonial-card,
  .info-box {
    width: 250px;
  }
}

.newsletter {
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
}

.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.newsletter button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: #357abd;
}
.car-cards .card {
  width: 45%;
  max-width: 400px;
}
.car-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.newsletter {
  padding: 50px 20px;
  text-align: center;
  margin: 0 auto 50px;
  max-width: 600px;
}

.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter input,
.newsletter button {
  flex: none;
  width: auto;
  min-width: 200px;
}

.page-title {
  text-align: center;
  padding: 40px 20px;
}

.page-title h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #3a4859;
}

.page-title p {
  font-size: 1.2em;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.inventory-grid {
  padding: 20px;
}

.inventory-grid .cards {
  display: grid;
  gap: 30px;
  justify-items: center;
  grid-template-columns: repeat(2, minmax(330px, 1fr));
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.inventory-grid .cards > * {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 768px) {
  .inventory-grid .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    justify-items: center;
  }

  .inventory-grid .cards > * {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
  }
}
