/* =========================
   Hero Diagonal
========================= */
.hero-diagonal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 80px;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.hero-diagonal::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 130%;
  height: 100%;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: skewY(-6deg);
  transform-origin: top left;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 45%;
}

.hero-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-image {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s ease;
}
.hero-image img:hover {
  transform: scale(1.05);
}

/* =========================
   Detail Specs
========================= */
.detail-specs {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "Poppins", sans-serif;
}

.detail-specs h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.detail-specs h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: #d32f2f;
  border-radius: 2px;
}

/* =========================
   Accordion Specs
========================= */
.spec-accordion {
  border-bottom: 1px solid #ddd;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  background: #fafafa;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.accordion-btn:hover {
  background: #f0f0f0;
}

.accordion-btn .icon {
  font-weight: bold;
  transition: transform 0.3s, color 0.3s;
}

.accordion-btn.active {
  color: #d32f2f;
}

.accordion-btn.active .icon {
  transform: rotate(45deg);
  color: #d32f2f;
}

.accordion-content {
  display: none;
  padding: 15px 20px 25px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* =========================
   Spec Table
========================= */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-label {
  width: 40%;
  font-weight: 600;
  color: #222;
  background: #fafafa;
}

.spec-value {
  width: 60%;
  color: #555;
}

/* =========================
   Karoseri Grid
========================= */
.karoseri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.karoseri-item {
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.karoseri-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.karoseri-item img {
  max-width: 140px;
  margin-bottom: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.karoseri-item:hover img {
  transform: scale(1.08);
}

.karoseri-item p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .hero-diagonal {
    flex-direction: column;
    height: auto;
    padding: 50px 20px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 25px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    max-height: 220px;
  }
}

#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  background-color: #007bff;
  color: white;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none; /* default hidden */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}
#back-to-top:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
