/* Footer seluruh situs */
.l4l-foot, .l4l-foot * { box-sizing: border-box; }
.l4l-foot { position: relative; isolation: isolate; overflow: hidden; background: #062420; color: #fff; }
.l4l-foot__inner { max-width: calc(var(--l4l-max) + 2 * var(--l4l-gutter)); margin: 0 auto; padding: 0 var(--l4l-gutter); }
.l4l-foot ul { list-style: none; margin: 0; padding: 0; }

/* Garis kontur lahan */
.l4l-foot__contour { position: absolute; z-index: -1; right: 0; top: 0; width: min(1100px, 100%); height: auto; color: #1f6b5c; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.l4l-foot__contour path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .75; }
.l4l-foot__contour path:nth-child(4n) { stroke: #c25a1f; opacity: .6; }

/* Tagline dan kontak */
.l4l-foot__lead { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px 56px; align-items: end; padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 5vw, 72px); }
.l4l-foot .l4l-foot__tagline { margin: 0; max-width: 21ch; font-size: clamp(1.875rem, 1.2rem + 2.7vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; word-spacing: .05em; color: #fff; text-wrap: balance; }
.l4l-foot__word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.l4l-foot__word > span { display: inline-block; }
.l4l-foot__contact { padding-bottom: 8px; }
.l4l-foot .l4l-foot__contact p { margin: 0; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.l4l-foot .l4l-foot__contact strong { display: block; margin-top: 2px; font-size: 1.125rem; font-weight: 700; color: #fff; }
.l4l-foot .l4l-foot__mail {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: 100%; margin-top: 18px; padding: 8px 24px; border-radius: 999px;
  background: var(--l4l-orange-strong); color: #fff; font-size: .9375rem; font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; transition: background-color .2s;
}
.l4l-foot .l4l-foot__mail:hover { background: #fff; color: var(--l4l-green); }
.l4l-foot__mail svg { flex: none; }

/* Kolom tautan */
.l4l-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px 32px; padding: 44px 0 56px; border-top: 1px solid rgba(255, 255, 255, .2); }
.l4l-foot .l4l-foot__col h2 { margin: 0 0 14px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: #fff; }
.l4l-foot .l4l-foot__col a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 0; font-size: .9375rem; line-height: 1.4; color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s; }
.l4l-foot__col a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--l4l-ease); }
.l4l-foot .l4l-foot__col a:hover { color: #fff; }
.l4l-foot__col a:hover span { background-size: 100% 1px; }
.l4l-foot__col svg { flex: none; opacity: .6; }

/* Baris bawah */
.l4l-foot__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; padding: 26px 0 32px; border-top: 1px solid rgba(255, 255, 255, .2); }
.l4l-foot__brand img { display: block; width: auto; height: 44px; }
.l4l-foot .l4l-foot__copy { margin: 0; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .76); }
.l4l-foot__social { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.l4l-foot__social-label { margin-right: 6px; font-size: .875rem; color: rgba(255, 255, 255, .76); }
.l4l-foot .l4l-foot__social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 50%; color: #fff; font-size: 1.1875rem; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.l4l-foot .l4l-foot__social a:hover { background: #fff; border-color: #fff; color: var(--l4l-green); }

.l4l-foot a:focus-visible { outline: 3px solid #ffa676; outline-offset: 3px; border-radius: 8px; }
.l4l-foot .l4l-foot__mail:focus-visible, .l4l-foot .l4l-foot__social a:focus-visible { border-radius: 999px; }

/* Tombol kembali ke atas */
.l4l-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900; display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  border: 0; border-radius: 50%; background: var(--l4l-orange-strong); color: #fff; box-shadow: 0 8px 24px rgba(5, 28, 24, .3); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .3s var(--l4l-ease), visibility 0s .3s, background-color .2s;
}
.l4l-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.l4l-top:hover { background: #a93d05; }
.l4l-top:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* Sisakan tempat untuk tombol kembali ke atas */
@media (min-width: 600.02px) and (max-width: 1520px) { .l4l-foot__bar { padding-right: 60px; } }
@media (max-width: 1099.98px) {
  .l4l-foot__lead { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 600px) {
  .l4l-foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px 20px; }
  .l4l-foot .l4l-foot__col a { min-height: 40px; }
  .l4l-foot__bar { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .l4l-foot__social { margin-left: 0; }
  .l4l-foot__contour { width: 180%; right: -40%; -webkit-mask-image: none; mask-image: none; }
  .l4l-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ------------------------------------------------------------------
   Animasi. Keadaan awal hanya berlaku bila JS memasang .l4l-motion.
------------------------------------------------------------------- */
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes l4l-foot-word { from { transform: translateY(115%); } to { transform: none; } }
  @keyframes l4l-foot-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes l4l-foot-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes l4l-foot-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

  .l4l-motion .l4l-foot:not(.is-in) .l4l-foot__word > span { transform: translateY(115%); }
  .l4l-motion .l4l-foot:not(.is-in) .l4l-foot__contact,
  .l4l-motion .l4l-foot:not(.is-in) .l4l-foot__col,
  .l4l-motion .l4l-foot:not(.is-in) .l4l-foot__bar > *,
  .l4l-motion .l4l-foot:not(.is-in) .l4l-foot__contour { opacity: 0; }

  /* Kontur tergambar, tagline naik per kata, lalu sisanya */
  .l4l-motion .l4l-foot.is-in .l4l-foot__contour path { stroke-dasharray: 1; animation: l4l-foot-trace 2.1s cubic-bezier(.5, 0, .2, 1) calc(var(--i) * .07s) both; }
  .l4l-motion .l4l-foot.is-in .l4l-foot__word > span { animation: l4l-foot-word .85s cubic-bezier(.16, 1, .3, 1) calc(.15s + var(--i) * .07s) both; }
  .l4l-motion .l4l-foot.is-in .l4l-foot__contact { animation: l4l-foot-up .7s var(--l4l-ease) .7s backwards; }
  .l4l-motion .l4l-foot.is-in .l4l-foot__col { animation: l4l-foot-up .65s var(--l4l-ease) calc(.75s + var(--i) * .09s) backwards; }
  .l4l-motion .l4l-foot.is-in .l4l-foot__bar > * { animation: l4l-foot-up .6s var(--l4l-ease) 1.2s backwards; }
  .l4l-motion .l4l-foot.is-in .l4l-foot__social a { animation: l4l-foot-pop .5s cubic-bezier(.2, 1.3, .4, 1) calc(1.35s + var(--i) * .1s) backwards; }

  .l4l-motion .l4l-foot.is-done * { animation: none !important; }
  .l4l-motion .l4l-foot.is-done .l4l-foot__contour path { stroke-dasharray: none !important; }
}
@media (prefers-reduced-motion: reduce) { .l4l-foot *, .l4l-top { transition-duration: .01ms !important; } }
@media print { .l4l-top { display: none; } }
