/* Fleet page layout */
body {
  font-family: Arial, sans-serif;
  background-color: #000; /* black background */
  color: #fff; /* white text */
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Header/navbar */
header {
  background-color: #0d0d0d;
  padding: 15px 30px;
  border-bottom: 2px solid #FFD700;
}

header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #FFD700;
  margin: 0;
  font-size: 28px;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

header nav a:hover {
  color: #FFD700;
}


.fleet-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  color: #FFD700; /* yellow accent */
  margin-bottom: 30px;
}

/* Grid with 3 cars per row */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch; /* ensures cards stretch evenly */
}

/* Tablet */
@media (max-width: 992px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }
}


/* Car card styling */
.car-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps buttons at bottom */
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* forces card to fill grid row */
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #FFD700; /* gold glow */
}


.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-card h2 {
  font-size: 20px;
  color: #FFD700;
  margin: 15px;
}

.car-card p {
  font-size: 14px;
  color: #ccc;
  margin: 0 15px 15px;
}

.car-card a {
  display: block;
  text-align: center;
  background: #FFD700;
  color: #000;
  text-decoration: none;
  padding: 10px;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
}

.car-card a:hover {
  background: #e6c200;
}

.car-buttons {
  display: flex;
  justify-content: space-around;
  margin: 15px;
}

.info-btn {
  background-color: #555; /* darker gray for second button */
  color: #FFD700;
}

.info-btn:hover {
  background-color: #777;
  color: #000;
}

