body {
  margin: 0;
  padding-top: 80px;
  font-family: 'Alegreya SC', serif;
  background-color: #000;
  color: #caa25f;
  text-align: center;
}

/* Header / Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #000;
  padding: 1rem;
  border-bottom: 1px solid #caa25f;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #caa25f;
}

.nav-logo {
  height: 50px;
  max-width: 150px;
}

.burger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #caa25f;
  display: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 20px;
}

nav a {
  margin: 0 15px;
  color: #caa25f;
  text-decoration: none;
  font-weight: normal;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: #caa25f;
  transition: width 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

/* Intro Section */
.intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.intro p {
  max-width: 600px;
  margin: 1rem auto;
  font-size: 1.1rem;
}

.logo img {
  max-width: 300px;
  margin: 1rem auto;
  display: block;
}

/* Headings */
h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  color: #caa25f;
  text-transform: uppercase;
}

/* Product Grid (Home) */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.product {
  max-width: 200px;
}

.product img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* ensures square images */
  object-fit: cover;     /* crops nicely */
  border-radius: 12px;   /* rounded corners */
}
/* Showroom Grid */
.showroom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  justify-items: center;
}


.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  justify-items: center;
}

.car-card {
  background-color: #111;
  border: 1px solid #caa25f;
  border-radius: 12px;
  overflow: hidden;
  max-width: 320px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: scale(1.02);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


.car-detail-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.car-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.car-gallery {
  flex: 1 1 400px;
  max-width: 500px;
}

.car-gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
  object-fit: cover;
}

.car-info {
  flex: 1 1 300px;
  max-width: 500px;
  background-color: #111;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #caa25f;
}

.car-info h1 {
  margin-top: 0;
}

.car-info .price {
  color: #caa25f;
  font-weight: bold;
  font-size: 1.25rem;
  margin: 1rem 0;
}

.car-info h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.car-info .price {
  color: #caa25f;
  font-weight: bold;
  margin-bottom: 1rem;
}


.car-detail {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: #111;
  border: 1px solid #caa25f;
  border-radius: 8px;
}

.view-button {
  display: inline-block;
  background-color: #caa25f;
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.view-button:hover {
  background-color: #dcb676;
}

.theme-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background-color: #caa25f;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.theme-button:hover {
  background-color: #dcb676;
}

/* Buttons */
.shop-button {
  background-color: #caa25f;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 20px;
  font-family: 'Alegreya SC', serif;
  font-weight: bold;
  cursor: pointer;
  margin: 2rem 0;
}

.shop-button:hover {
  background-color: #dcb676;
}

/* Social Embed */
.social iframe {
  width: 100%;
  max-width: 500px;
  height: 400px;
  border: none;
  margin-top: 1rem;
}

/* Footer */
footer {
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #caa25f;
}

footer a {
  color: #caa25f;
  text-decoration: none;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .car-detail-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
  }
  


  .car-gallery, .car-info {
    max-width: 100%;
  }
  
  .products {
    flex-direction: column;
    align-items: center;
  }

  .car-card {
    width: 90%;
  }

  .car-card img {
    height: 180px;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 20px;
    z-index: 999;
    border-top: 1px solid #caa25f;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}
