/* === FONT & RESET === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/Fundal.jpeg") center/cover no-repeat;
  filter: brightness(0.3);
  z-index: -1;
}

/* === HEADER === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #d4af37;
  padding: 15px 20px;
  gap: 20px;
  position: relative;
}

.logo img {
  height: 80px;
  width: auto;
  margin-right: 15px;
  display: block;
}

.site-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #d4af37;
}

.menu-toggle {
  background: none;
  border: 2px solid #d4af37;
  color: #d4af37;
  font-size: 1.4em;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
}

/* === DROPDOWN MENU === */
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 65px;
  right: 30px;
  background-color: #000;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  display: block;
}

.dropdown-menu a:hover {
  color: #d4af37;
}

.dropdown-menu.show {
  display: flex;
}

/* === HERO SECTION (index only) === */
.hero {
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1em;
  margin-bottom: 20px;
}

.hero-button {
  background-color: #d4af37;
  color: black;
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero-button:hover {
  background-color: #b28e2e;
}

/* === TOP CARS SECTION === */
.top-cars {
  background-color: #1a1a1a;
  color: white;
  margin: 60px auto;
  padding: 40px 20px;
  border-radius: 16px;
  max-width: 1300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 2px solid #222;
}

.top-cars h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #d4af37;
  text-align: center;
}

.car-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.car-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  width: 300px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #d4af37;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.car-card h3 {
  margin: 15px 0 10px;
  color: #d4af37;
}

.car-card p {
  margin: 0 15px 15px;
  font-weight: 500;
  color: white;
}

.details-link {
  display: inline-block;
  margin: 15px auto 20px;
  padding: 10px 25px;
  background-color: #d4af37;
  color: black;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
}

.details-link:hover {
  background-color: #b28e2e;
  transform: translateY(-2px);
  color: black;
}

/* === PAGE CONTENT (for secondary pages) === */
.page-content {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
  color: white;
  z-index: 2;
  position: relative;
}

.page-content h1,
.page-content h2 {
  color: #d4af37;
  margin-bottom: 20px;
}

.page-content p {
  line-height: 1.6;
  font-size: 1.1em;
}

/* === CONTACT PAGE === */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.contact-container h2,
.contact-container p,
.contact-container form {
  text-align: center;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  border-radius: 4px;
  border: none;
}

.contact-container button {
  padding: 10px 25px;
  background-color: #d4af37;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-container button:hover {
  background-color: #b28e2e;
}

/* === MEDIA === */
@media (max-width: 768px) {
  .car-list {
    flex-direction: column;
    align-items: center;
  }
}

.slider {
  position: relative;
  max-width: 600px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
  height: auto;
}

.slide {
  width: 100%;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
  opacity: 0;
  border-radius: 10px;
}

.slide.active {
  display: block;
  position: relative;
  opacity: 1;
  z-index: 1;
}

.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.slider .prev {
  left: 10px;
}

.slider .next {
  right: 10px;
}
#loader {
  position: fixed;
  inset: 0;
  background: #0d0d0d; /* negru premium */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  width: 120px;
  margin-bottom: 20px;
  filter: brightness(1.2); /* puțin glow pe alb/auriu */
}

.loader-ring {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255, 215, 0, 0.2);
  border-top-color: gold;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* === CONTACT PAGE CENTERED === */
.contact-center {
  min-height: calc(100vh - 150px); /* scade headerul */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centrăm pe verticală */
  align-items: center;      /* centrăm pe orizontală */
  text-align: center;
  color: white;
  padding: 20px;
}

.contact-center h1 {
  color: #d4af37;
  margin-bottom: 20px;
  font-size: 2em;
}

.contact-center p {
  font-size: 1.2em;
  margin: 8px 0;
}
