/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
  font-family: 'DM Sans', sans-serif;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 520px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer {
    padding: 3rem 0 0;
  }
  .footer .container {
    padding: 0 1.5rem;
  }
}

.footer-logo img {
  max-width: 180px;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-contact p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact p i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 1.4rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
  letter-spacing: 0.03em;
}

.footer-bottom strong {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ════════════════════════════════════════════
   FLOATING ELEMENTS
   ════════════════════════════════════════════ */

/* ─── WHATSAPP FLOAT ───────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* ─── SCROLL TOP ───────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 35px;
  z-index: 998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.scroll-top.active {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  color: var(--navy);
}

/* ─── PARTNER FLOATING ─────────────────────── */
.partner-trigger {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.25s ease;
}

.partner-trigger img {
  height: 60px;
  width: auto;
  display: block;
}

.partner-trigger:hover {
  transform: scale(1.08);
}

/* Info card popup */
.partner-info-card {
  position: fixed;
  bottom: 155px;
  right: 20px;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  padding: 1.4rem 1.4rem 1.2rem;
  z-index: 999;

  /* hidden state */
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.partner-info-card.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tombol close */
.partner-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.partner-close:hover { color: #374151; }

/* Label kecil di atas */
.partner-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Teks deskripsi */
.partner-info-card .partner-text {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.partner-info-card .partner-text strong {
  color: #1a1a2e;
  font-weight: 600;
}

/* Tombol link */
.partner-link {
  display: inline-block;
  background: var(--gold, #c9a84c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.partner-link:hover {
  background: #a07830;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   RESPONSIVE MOBILE (max-width: 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Footer text size */
  .footer-contact p,
  .footer-links ul li a {
    font-size: 0.82rem;
  }

  /* WhatsApp lebih kecil & aman dari notifikasi partner */
  .whatsapp-float {
    width: 46px;
    height: 46px;
    bottom: 20px;
    right: 16px;
  }
  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }

  /* Scroll-top lebih kecil, pindahkan sedikit ke atas */
  .scroll-top {
    width: 34px;
    height: 34px;
    bottom: 22px;
    left: 16px;
    font-size: 1rem;
  }

  /* Partner trigger */
  .partner-trigger {
    right: 14px;
    bottom: 80px;      /* naik sedikit agar tidak menumpuk WhatsApp */
  }
  .partner-trigger img {
    height: 50px;       /* lebih kecil */
  }

  /* Info card menyesuaikan layar */
  .partner-info-card {
    width: calc(100vw - 32px);
    right: 12px;
    bottom: 138px;      /* beri ruang di atas trigger */
    padding: 1.2rem;
  }

  .partner-info-card .partner-text {
    font-size: 0.8rem;
  }

  .partner-link {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

/* ─── Tambahan untuk layar sangat kecil (<=360px) ─── */
@media (max-width: 360px) {
  .whatsapp-float {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 12px;
  }
  .whatsapp-float img {
    width: 22px;
    height: 22px;
  }

  .scroll-top {
    width: 30px;
    height: 30px;
    bottom: 18px;
    left: 12px;
  }

  .partner-trigger {
    right: 10px;
    bottom: 70px;
  }
  .partner-trigger img {
    height: 42px;
  }

  .partner-info-card {
    bottom: 125px;
    width: calc(100vw - 24px);
  }
}

