/* General Styles */
body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #003366;
  margin: 0;
  padding: 0;
}

header {
  background-color: #003366;
  color: white;
  padding: 1rem;
  text-align: center;
}

.logo {
  width: 120px;
  height: auto;
  margin: 0 auto 10px;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

main {
  padding: 2rem;
}

/* Inventory grid container */
#inventory {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
}

/* Card for each car */
.car-card {
  position: relative;
  width: 250px;
  border: 1px solid #ccc;
  padding: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.car-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.car-card img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.car-card h3 {
  font-size: 1rem;
  font-weight: bold;
  margin: 10px 0 5px;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  color: #2a2a2a;
}

.car-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* SOLD badge styling */
.sold-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 3px;
  font-size: 0.8em;
  z-index: 2;
  white-space: nowrap;
}

/* Listing Page - Title */
.hero-title {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
}

/* Listing Page - Hero Image */
.main-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: 8px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.main-image:hover {
  transform: scale(1.02);
}

/* Car Specs Section */
.car-specs {
  margin-top: 1.5rem;
}

.car-specs p {
  font-size: 1rem;
  margin: 5px 0;
}

.car-specs strong {
  color: #003366;
}

/* Description Section */
.car-description {
  margin-top: 20px;
}

.car-description h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.car-description p {
  font-size: 1rem;
  color: #333;
}

/* Gallery Section */
.gallery {
  margin-top: 30px;
}

.gallery h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003366;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-image {
  max-width: 220px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.2s ease;
  cursor: pointer;
}

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

/* Footer */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
}

/* Optional: Lightbox customizations */
.lb-data .lb-close {
  color: white !important;
  background-color: red;
  border-radius: 3px;
  padding: 5px;
}

/* Hero Section */
.hero {
  background-image: url('../images/index_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  min-height: 300px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);  /* translucent black */
  z-index: 0;
}

/* Push text above the overlay */
.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

.hero a.button {
  display: inline-block;
  background: white;
  color: #003366;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.hero a.button:hover {
  background: #f0f0f0;
}

/* About Section */
.about {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.about h2 {
  color: #003366;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Features Section */
.features {
  background-color: #f9f9f9;
  padding: 2rem 1rem;
}

.features h2 {
  text-align: center;
  color: #003366;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.feature {
  width: 220px;
  text-align: center;
}

.feature img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.8rem;
}

.feature h3 {
  font-size: 1.1rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: #555;
}

/* Contact CTA Section */
.contact-cta {
  background-color: #003366;
  color: white;
  padding: 2rem;
  text-align: center;
}

.contact-cta h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.contact-cta a {
  background-color: white;
  color: #003366;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.contact-cta a:hover {
  background: #f0f0f0;
}

/* Hero Banner with Background Image */
.hero-banner {
  background-image: url('../images/index_background.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

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

.cta-button {
  background-color: white;
  color: #003366;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #003366;
  color: white;
}
.contact-info {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

.contact-info h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: #333;
  margin: 0.3rem 0;
}

.map-link {
  margin-top: 1rem;
}

.map-link a {
  font-size: 1rem;
  color: #003366;
  text-decoration: underline;
}

.map-embed {
  max-width: 1000px;
  margin: 2rem auto;
}
footer a {
  color: white;
  text-decoration: underline;
}
