/* =========================
   GLOBAL
========================= */
html { scroll-behavior: smooth; }

/* =========================
   HERO (kalau masih pakai class ini)
========================= */
.hero-bg {
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.8), rgba(30, 64, 175, 0.6)),
    url("https://images.unsplash.com/photo-1587351021759-3e566b9af9ef?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Layer dekorasi/pattern jangan pernah menangkap klik */
.hero-pattern {
  pointer-events: none !important;
}

/* =========================
   MOBILE MENU (FIX KLIK)
========================= */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
  z-index: 9999;
}
.hide-menu { transform: translateX(100%); }
.show-menu { transform: translateX(0); }

/* Overlay menu: default mati total (bukan cuma hidden) */
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;            /* default benar-benar hilang */
  pointer-events: none;     /* tidak menangkap klik */
  z-index: 9998;
}

/* Saat menu dibuka, JS akan menambah class is-open */
#mobile-menu-overlay.is-open {
  display: block;
  pointer-events: auto;
}

/* =========================
   HEADER (biar tetap di atas konten)
========================= */
header { z-index: 10001; }

/* =========================
   WHATSAPP FLOATING BUTTON
========================= */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  pointer-events: auto;
}
.wa-fab:hover { filter: brightness(0.95); }

/* =========================
   WHATSAPP MODAL (FIX KLIK)
========================= */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: block;
}

/* Saat hidden → mati total */
.wa-modal.hidden {
  display: none !important;
  pointer-events: none !important;
}

.wa-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  pointer-events: auto; /* klik overlay untuk close */
}

.wa-modal-card {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 90px auto 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  pointer-events: auto; /* card tetap bisa diklik */
}

.wa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
}

.wa-modal-body { padding: 16px 18px 18px; }

.wa-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
  resize: vertical;
}
.wa-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}

.wa-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}
.wa-quick:hover {
  border-color: #22c55e;
  color: #16a34a;
}

.wa-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.wa-send:hover { filter: brightness(.95); }