/* ==========================================================================
   GEKRAFS FOOTER (komponen global)
   Markup  : partials/footer.php  -> gekrafs_footer()
   Gerak   : index -> assets/js/index-animations.js (termasuk efek tirai)
             halaman lain -> assets/js/gk-footer.js (GSAP)
   Dipakai : semua halaman publik. Aman tanpa custom.css (variabel ber-fallback).
   ========================================================================== */

/* --- Footer -------------------------------------------------------------- */
.gk-foot {
  --gk-line: rgba(255, 255, 255, 0.12);
  --gk-muted: #8ea3bd;
  position: relative;
  z-index: 0;
  background: var(--brand-navy-dark, #071224);
  color: #ffffff;
  font-family: var(--font-display, 'Roboto Condensed'), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
}

.gk-foot *,
.gk-foot *::before,
.gk-foot *::after {
  box-sizing: border-box;
}

.gk-foot-inner {
  padding-top: clamp(48px, 8vh, 88px);
}

.gk-foot-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 2.1fr 0.9fr;
  gap: 2.5rem 3rem;
  padding-bottom: clamp(36px, 5vh, 56px);
}

.gk-foot-logo img {
  display: block;
  width: 104px;
  height: auto;
}

.gk-foot-brand p {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--gk-muted);
}

.gk-foot-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gk-line);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold, #FFC905);
}

.gk-foot-title span {
  color: var(--gk-muted);
  font-variant-numeric: tabular-nums;
}

.gk-foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-foot-negara ul {
  columns: 3;
  column-gap: 1.5rem;
}

.gk-foot-col li {
  break-inside: avoid;
}

.gk-foot-col li a {
  position: relative;
  display: inline-block;
  padding: 0.32rem 0;
  color: #dbe5f1;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gk-foot-col li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gk-foot-col li a:hover,
.gk-foot-col li a:focus-visible {
  color: var(--brand-gold, #FFC905);
}

.gk-foot-col li a:hover::after,
.gk-foot-col li a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.gk-foot-join {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--brand-gold, #FFC905);
  border-radius: 0;
  color: var(--brand-gold, #FFC905);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.gk-foot-join:hover,
.gk-foot-join:focus-visible {
  background: var(--brand-gold, #FFC905);
  color: var(--brand-navy, #0c1e38);
}

/* Marquee tagline */
.gk-marquee {
  overflow: hidden;
  border-top: 1px solid var(--gk-line);
  border-bottom: 1px solid var(--gk-line);
  padding: 1rem 0;
}

.gk-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.gk-marquee-item,
.gk-marquee-sep {
  flex: none;
  padding: 0 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gk-marquee-item {
  color: #ffffff;
}

.gk-marquee-sep {
  padding: 0;
  color: var(--brand-gold, #FFC905);
}

/* Wordmark raksasa: selebar container, terpotong di tepi bawah footer.
   --gk-mark-fs diisi JS (ukuran agar pas lebar). */
.gk-wordmark {
  --gk-mark-fs: 22vw;
  height: min(calc(var(--gk-mark-fs) * 0.8), 24vh);
  margin: 0.5rem 0 0;
  overflow: hidden;
  font-size: var(--gk-mark-fs);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.gk-wordmark .gk-char {
  display: inline-block;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.gk-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.gk-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gk-muted);
}

.gk-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem 0.55rem 1.1rem;
  border: 1px solid var(--gk-line);
  border-radius: 0;
  background: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.gk-top:hover,
.gk-top:focus-visible {
  border-color: var(--brand-gold, #FFC905);
  color: var(--brand-gold, #FFC905);
}

/* --- Responsif ----------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .gk-foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gk-foot-negara ul {
    columns: 2;
  }
}

@media (max-width: 575.98px) {
  .gk-foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gk-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Target sentuh 44px -------------------------------------------------- */
.gk-top,
.gk-foot-join {
  min-height: 44px;
}

.gk-foot-join {
  align-items: center;
}

@media (max-width: 991.98px), (pointer: coarse) {
  .gk-foot-col li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0;
  }

  .gk-foot-col li a::after {
    bottom: 0.6rem;
  }
}

/* --- Daftar negara: judul jadi tombol lipat di HP ------------------------ */
.gk-foot-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: default;
}

.gk-foot-toggle-text {
  color: var(--brand-gold, #FFC905);
}

.gk-foot-chev {
  display: none;
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

@media (max-width: 767.98px) {
  .gk-foot-toggle {
    min-height: 44px;
    cursor: pointer;
  }

  .gk-foot-count {
    margin-left: auto;
  }

  .gk-foot-chev {
    display: block;
    color: var(--gk-muted, #8ea3bd);
  }

  .gk-foot-negara .gk-foot-title {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .gk-foot-negara ul {
    padding-top: 0.5rem;
  }

  .gk-foot-negara.is-collapsed ul {
    display: none;
  }
}
