html {
  scroll-behavior: smooth;
}
/* ================= HERO ================= */
/* HERO */
.hero-penyewa {
  height: 93vh;
  background: url('../assets/images/landing.png') center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-penyewa {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content-penyewa {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  width: 700px;
}

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

.hero-penyewa p {
  margin: 15px 0;
}


/* BUTTON */
.hero-btn {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-btn-penyewa a {
  margin: 5px;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
}

.btn-white {
  background: white;
  color: #d97706;
}

.btn-orange {
  background: #d97706;
  color: white;
}

/* ================= PROFIL ================= */
.profil {
  background: white;
  padding: 80px 0;
}

.profil-wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  align-items: center;
  justify-content: center; /* biar posisi tengah */
}

.profil-img {
  width: 45%;
  height: 260px;
  background: url('../assets/images/lokasipusat.jpeg') center center / cover no-repeat;
  border-radius: 15px;
}

.profil-text {
  width: 55%;
  text-align: center;
}

.line-title,
.title-line {
  position: relative;
  width: 200px;
  height: 3px;
  background: #e5e5e5; /* abu panjang */
  margin: 10px auto 40px; /* center */
  border-radius: 10px;
}

/* orange di tengah */
.line-title::after,
.title-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #d97706;
  border-radius: 10px;
}
/* ================= CABANG ================= */
.cabang {
  background: #c87300;
  padding: 60px 40px;
  text-align: center;
  min-height: auto;
}

.cabang h2 {
  color: #000;
  font-size: 22px;
  font-weight: 600;
}

.title-line {
  position: relative;
  width: 200px;
  height: 3px;
  background: #e5e5e5;
  margin: 10px auto 40px;
  border-radius: 10px;
}

.title-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #d97706;
  border-radius: 10px;
}

.cabang-container {
  position: relative;
  width: 1100px;
  margin: auto;
}

.cabang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: 0.2s;
  justify-content: flex-start; /* jangan center */

  min-height: 85px; /* tambah tinggi vertikal */
}

.card:hover {
  transform: translateY(-2px);
}

/* ICON */
.icon {
  background: #fff3e6;
  color: #d97706;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
}

/* TEXT */
.text {
  text-align: left; /* paksa semua ke kiri */
}

.text h4 {
  font-size: 13px;
  margin-bottom: 3px;
  text-align: left; /* nama cabang rata kiri */
}

.text p {
  font-size: 11px;
  color: #555;
  text-align: justify; /* alamat kanan-kiri */
  line-height: 1.4;
}

/* ARROW */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  border: none;
  cursor: pointer;
}

.left { left: -50px; }
.right { right: -50px; }
/* ================= SYARAT ================= */
.syarat {
  background: #ffffff;
  padding: 30px 0;
  text-align: center;
}

.timeline {
  width: 800px;
  margin: 40px auto;
  position: relative;
}

/* GARIS */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #c87300;
  transform: translateX(-50%);
}

/* ROW */
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  margin: 25px 0;
}

/* BOX */
.timeline-box {
  background: #f7efe6;
  border: 1.5px solid #c87300;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  width: 260px;
}

.timeline-box.left {
  justify-self: end;
  text-align: center;
}

.timeline-box.right {
  justify-self: start;
  text-align: center;
}

/* CIRCLE */
.timeline-circle {
  width: 28px;
  height: 28px;
  border: 2px solid #c87300;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
}

 /* ===== TABLET DULU ===== */
/* ===== TABLET ===== */
@media (max-width: 992px) {

  .hero-content-penyewa {
    width: 90%;
  }

  .cabang-container {
    width: 100%;
  }

  .cabang-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    width: 90%;
  }
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* ================= GLOBAL FIX ================= */
  body {
    overflow-x: hidden;
  }

  section, .cabang, .profil, .syarat {
    width: 100%;
    overflow-x: hidden;
  }

  /* ================= HERO ================= */
  .hero-penyewa {
    height: auto;
    min-height: 65vh;
    padding: 40px 0;
  }

  .hero-content-penyewa {
    width: 92%;
    padding: 0 10px;
  }

  .hero-penyewa h1 {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-penyewa p {
    font-size: 13px;
  }

  .hero-btn {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btn-penyewa a {
    width: 100%;
    text-align: center;
  }

  /* ================= PROFIL ================= */
  .profil-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  .profil-img,
  .profil-text {
    width: 100%;
  }

  .profil-img {
    height: 180px;
  }

  /* ================= CABANG ================= */
  .cabang {
    padding: 40px 15px;
  }

  .cabang-container {
    width: 100%;
    padding: 0;
  }

  .cabang-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    min-height: auto;
  }

  .text h4 {
    font-size: 13px;
  }

  .text p {
    font-size: 11px;
  }

  /* HAPUS ARROW DI MOBILE */
  .nav-arrow {
    display: none;
  }

  /* ================= SYARAT ================= */

   .timeline {
    width: 100%;
    padding-left: 20px;
  }

  /* ubah jadi 1 kolom full vertical */
  .timeline-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin-bottom: 25px;
  }

  /* box full width */
  .timeline-box {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding: 12px;
  }

  /* circle di kiri */
  .timeline-circle {
    position: absolute;
    left: -10px;
    top: 10px;
  }

  /* garis vertical */
  .timeline-line {
    display: block;
    position: absolute;
    left: 0;
    width: 2px;
    background: #c87300;
    height: 100%;
  }

}