/* =====================================================================
   FAQ (/faq/) — 27 Okt 2026. Tidak ada desain Figma: tersusun dari komponen & token situs.
   Hero = komponen .pl-hero (components.css). Ukuran teks = kombinasi yang sudah sah di audit-font.py:
   judul kelompok 28/800/34, pertanyaan 16/700/24, jawaban 16/500/24, kartu bantuan 20/800/28 + 14/500/20 + tombol 14/600/20.
   Di WordPress halaman ini memakai berkas CSS yang sama (tema pages/faq/style.css).
   ===================================================================== */

/* ---------- Hero: foto tim PMI + mesin berbalut foil ----------
   Berkas = asset/PHOTO-2021-07-22-16-15-13 DICERMINKAN (pekerja pindah ke kanan, tidak tertutup lapisan hijau; baju tanpa
   tulisan). Diperbesar (min 1760 di 1440) supaya kedua pekerja berada di area foto x±1120–1380; kepala ±y200–290. */
.pl-hero--faq .pl-hero__bg img {
  --w: max(1760px, calc(100cqw - var(--edge-pad, 72px) + 416px));
  object-position: 50% 50%;
}
@media (max-width: 860px) {
  .pl-hero--faq .pl-hero__bg img { object-position: 80% 50%; }
  /* 4 tautan pendek: 2 kolom (komponen: 1 kolom di HP -> pita ±280 px) */
  .pl-hero--faq .pl-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .pl-hero--faq .pl-feat a { gap: 10px; }
  .pl-hero--faq .pl-feat svg { width: 28px; height: 28px; }
}
/* pita: 4 tautan kelompok -> sedikit lebih lebar dari pita 3 fitur (masih di area hijau gelap) */
@media (min-width: 861px) {
  .pl-hero--faq .pl-hero__strip,
  html:not([lang="en"]) .pl-hero--faq .pl-hero__strip { width: calc(var(--edge-pad, 72px) + 800px); }
  .pl-hero--faq .pl-feats { gap: 14px 36px; }
}
.pl-hero--faq .pl-feat a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.pl-hero--faq .pl-feat a:hover span,
.pl-hero--faq .pl-feat a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Daftar tanya-jawab + kartu bantuan ---------- */
.faq {
  padding-block: 72px 96px;
  background: #FFFFFF;
}
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}
.faq__list { display: grid; gap: 56px; }

.faq-grup { scroll-margin-top: 120px; }                   /* lompat dari pita hero: tidak tertutup header sticky */
.faq-grup__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -0.01em;
  color: #003E3B;
}
.faq-grup__title svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: #036F4A;
  color: #FFFFFF;
}

.faq-item { border-bottom: 1px solid #DEDEDE; }
.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #01261F;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* chevron (mask, warna = currentColor) */
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  background: #036F4A;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.6 6 9.6l1.4-1.4 4.6 4.6 4.6-4.6L18 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.6 6 9.6l1.4-1.4 4.6 4.6 4.6-4.6L18 9.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover,
.faq-item[open] summary { color: #036F4A; }
.faq-item summary:focus-visible { outline: 2px solid #048C4D; outline-offset: 2px; border-radius: 4px; }
.faq-item__a { padding: 0 48px 22px 0; }
.faq-item__a p {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #393939;
}
.faq-item__a p + p { margin-top: 12px; }

/* kartu bantuan: gradasi panel Services Home (#036F4A -> #003E3B), menempel saat digulir */
.faq-help {
  position: sticky;
  top: 122px;                                              /* header 98 + 24 */
  padding: 32px 28px;
  border-radius: 12px;
  background: linear-gradient(160deg, #036F4A 0%, #003E3B 100%);
  color: #FFFFFF;
}
.faq-help__icon { display: block; width: 38px; height: 38px; color: #5CD988; }
.faq-help__title {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  color: #FFFFFF;
}
.faq-help__desc {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #FFFFFF;
}
.faq-help__btns { display: grid; gap: 12px; margin-top: 24px; }
.faq-help__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.faq-help__btn svg { flex: none; width: 18px; height: 18px; }
.faq-help__btn--wa { background: #FFFFFF; color: #003E3B; }
.faq-help__btn--wa svg { width: 20px; height: 20px; color: #048C4D; }
@media (hover: hover) {
  .faq-help__btn:hover { background: #FFFFFF; color: #003E3B; }
  .faq-help__btn--wa:hover { background: #C8F8D0; }
}
.faq-help__btn:focus-visible { outline: 2px solid #5CD988; outline-offset: 2px; }


/* ---------- Tablet & HP ---------- */
@media (max-width: 1100px) {
  .faq { padding-block: 56px 72px; }
  .faq__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .faq-help { position: static; }
}
@media (max-width: 768px) {
  .faq { padding-block: 40px 56px; }
  .faq__list { gap: 40px; }
  .faq-grup__title { font-size: 20px; line-height: 28px; font-weight: 800; }   /* 20/800/28 (sah) */
  .faq-grup__title svg { width: 40px; height: 40px; padding: 9px; }
  .faq-item summary { padding-right: 40px; }
  .faq-item__a { padding-right: 0; }
  .faq-help { padding: 28px 22px; }
}

/* 12 Nov (user: foto hero pas dengan lebar hero, tidak ter-zoom, subjek tidak tertutup gradasi/teks): foto = hasil GPT
   (tools/bahan-gpt-hero.py) dipotong ber-RASIO KOTAK HERO 1440 dengan subjek di sisi kanan (zona jernih) -> menutup kotak
   hero penuh; 1920 memotong atas-bawah sedikit, tablet & HP memperlihatkan sisi KANAN (subjek). Penjangkaran Figma lama
   (--w, top -98, cermin box-reflect) tidak dipakai lagi. Cek: python tools/ukur-hero.py */
.pl-hero--faq .pl-hero__bg img { --w: 100%; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  -webkit-box-reflect: none; }
