/* Banner halaman Home */
.l4l-hero, .l4l-hero * { box-sizing: border-box; }
.l4l-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: min(100svh, 1100px);
  background: #0a2e29; color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.l4l-hero__media { position: absolute; inset: 0; z-index: -1; }
.l4l-hero__poster, .l4l-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l4l-hero__video { opacity: 0; transition: opacity .8s; }
.l4l-hero__video.is-ready { opacity: 1; }
/* Gelap di kiri untuk teks, di atas untuk menu, di bawah untuk lokasi; kanan tetap terang */
.l4l-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 28, 24, .72) 0, rgba(5, 28, 24, 0) 210px),
    linear-gradient(0deg, rgba(5, 28, 24, .86) 0, rgba(5, 28, 24, 0) 300px),
    linear-gradient(90deg, rgba(5, 28, 24, .82) 0%, rgba(5, 28, 24, .58) 42%, rgba(5, 28, 24, .1) 78%);
}

.l4l-hero__body {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  width: 100%; max-width: calc(var(--l4l-max) + 2 * var(--l4l-gutter));
  margin: 0 auto; padding: calc(var(--l4l-head) + 32px) var(--l4l-gutter) 112px;
}
.l4l-hero .l4l-hero__title {
  margin: 0; max-width: 14ch;
  font-family: inherit; font-size: clamp(2.75rem, 1.4rem + 5.2vw, 5.75rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -.015em; word-spacing: .06em; color: #fff; text-wrap: balance;
}
.l4l-hero__title em { display: block; font-style: italic; color: #ff8a47; }
.l4l-hero .l4l-hero__text {
  margin: 24px 0 0; max-width: 34em;
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem); font-weight: 400; line-height: 1.65;
  color: rgba(255, 255, 255, .92); text-wrap: pretty;
}
.l4l-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.l4l-hero .l4l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 700; line-height: 1.2; color: #fff; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.l4l-btn svg { flex: none; transition: transform .25s var(--l4l-ease); }
.l4l-btn:hover svg { transform: translateX(4px); }
.l4l-hero .l4l-btn--primary { background: var(--l4l-orange-strong); }
.l4l-hero .l4l-btn--primary:hover { background: #a93d05; color: #fff; }
.l4l-hero .l4l-btn--ghost { border-color: rgba(255, 255, 255, .7); background: rgba(5, 28, 24, .28); }
.l4l-hero .l4l-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--l4l-green); }

/* Penanda gulir: bentuk mouse dengan titik yang turun, di tengah bawah banner */
.l4l-hero .l4l-hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; transition: border-color .2s; }
.l4l-hero .l4l-hero__scroll:hover { border-color: #fff; }
.l4l-hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
/* Area sentuh 44px tanpa mengubah ukuran ikon */
.l4l-hero__scroll::before { content: ""; position: absolute; inset: -6px -10px; }

.l4l-hero a:focus-visible, .l4l-hero button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.l4l-hero .l4l-hero__scroll:focus-visible { outline-offset: 4px; border-color: #fff; }

@media (max-width: 767.98px) {
  .l4l-hero__media::after {
    background:
      linear-gradient(180deg, rgba(5, 28, 24, .7) 0, rgba(5, 28, 24, 0) 160px),
      linear-gradient(0deg, rgba(5, 28, 24, .94) 0%, rgba(5, 28, 24, .78) 48%, rgba(5, 28, 24, .3) 100%);
  }
  .l4l-hero__body { justify-content: flex-end; padding-bottom: 100px; }
  .l4l-hero .l4l-hero__text { margin-top: 16px; line-height: 1.6; }
  .l4l-hero__actions { width: 100%; margin-top: 26px; }
  .l4l-hero .l4l-btn { flex: 1 1 auto; gap: 8px; padding: 0 14px; font-size: .9375rem; white-space: nowrap; }
  .l4l-hero__actions { gap: 10px; }
}
@media (max-height: 620px) and (min-width: 768px) {
  .l4l-hero .l4l-hero__title { font-size: clamp(2.5rem, 4.4vw, 3.75rem); }
  .l4l-hero .l4l-hero__text { margin-top: 14px; }
  .l4l-hero__actions { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .l4l-hero * { transition-duration: .01ms !important; } }

/* Aksen bagian berikutnya tidak menimpa tepi banner */
.l4l-hero + .location-area::before, .l4l-hero + .location-area::after { display: none; }

/* Tablet: teks memakan lebih banyak lebar, jadi lapisan gelap diperluas */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .l4l-hero__media::after {
    background:
      linear-gradient(180deg, rgba(5, 28, 24, .72) 0, rgba(5, 28, 24, 0) 190px),
      linear-gradient(0deg, rgba(5, 28, 24, .9) 0, rgba(5, 28, 24, 0) 340px),
      linear-gradient(90deg, rgba(5, 28, 24, .82) 0%, rgba(5, 28, 24, .68) 60%, rgba(5, 28, 24, .34) 100%);
  }
}

/* ------------------------------------------------------------------
   Animasi. Keadaan awal hanya berlaku bila JS menambahkan .l4l-motion
   ke <html>, jadi tanpa JS atau dengan "kurangi gerak" banner langsung utuh.
------------------------------------------------------------------- */
/* Banner sudah punya latar sendiri; layar pemuat tidak diperlukan di Home */
.preloader { display: none !important; }

.l4l-hero__line { display: block; }
.l4l-hero__line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .l4l-motion .l4l-hero__line { overflow: hidden; padding: 0 .12em .16em 0; margin: 0 -.12em -.16em 0; }
  .l4l-motion .l4l-hero:not(.is-in) .l4l-hero__line > span { transform: translateY(115%); }
  .l4l-motion .l4l-hero:not(.is-in) .l4l-hero__text,
  .l4l-motion .l4l-hero:not(.is-in) .l4l-btn,
  .l4l-motion .l4l-hero:not(.is-in) .l4l-hero__scroll { opacity: 0; }
  .l4l-motion .l4l-hero:not(.is-in) .l4l-hero__poster,
  .l4l-motion .l4l-hero:not(.is-in) .l4l-hero__video { transform: scale(1.12); }

  @keyframes l4l-rise { from { transform: translateY(115%); } to { transform: none; } }
  @keyframes l4l-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes l4l-pull { from { transform: scale(1.12); } to { transform: none; } }

  .l4l-motion .is-in .l4l-hero__poster,
  .l4l-motion .is-in .l4l-hero__video { animation: l4l-pull 3.2s cubic-bezier(.16, .8, .24, 1) both; }
  .l4l-motion .is-in .l4l-hero__line > span { animation: l4l-rise 1s cubic-bezier(.16, 1, .3, 1) .15s both; }
  .l4l-motion .is-in em.l4l-hero__line > span { animation-delay: .3s; }
  .l4l-motion .is-in .l4l-hero__text { animation: l4l-up .8s var(--l4l-ease) .6s both; }
  /* "backwards": setelah selesai, hover tombol kembali memakai gaya biasa */
  .l4l-motion .is-in .l4l-btn { animation: l4l-up .7s var(--l4l-ease) .78s backwards; }
  .l4l-motion .is-in .l4l-btn + .l4l-btn { animation-delay: .88s; }
  @keyframes l4l-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes l4l-wheel { 0% { opacity: 0; transform: none; } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
  .l4l-motion .is-in .l4l-hero__scroll { animation: l4l-fade .8s ease 1.2s backwards; }

  .l4l-motion .l4l-hero.is-done * { animation: none !important; }
  /* Titik pada penanda gulir terus bergerak, juga setelah animasi banner selesai */
  .l4l-hero .l4l-hero__scroll span, .l4l-motion .l4l-hero.is-done .l4l-hero__scroll span { animation: l4l-wheel 1.8s ease-in-out infinite !important; }

  /* Saat digulir: gambar tertinggal, teks memudar (nilai diisi JS) */
  .l4l-motion .l4l-hero__media { transform: translate3d(0, calc(var(--p, 0) * 18%), 0); }
  .l4l-motion .l4l-hero__body { transform: translate3d(0, calc(var(--p, 0) * 60px), 0); opacity: calc(1 - var(--p, 0) * 1.15); }
}
