/* =========================================================
   PELENGKAP BERANDA
   1. Testimoni pengunjung   (#testimoni)
   2. Tanya jawab / FAQ      (#faq)
   3. Peta & cara ke sini    (#lokasi, di dalam bagian Kontak)
   Warna & ukuran huruf memakai variabel di css/style.css, jadi otomatis ikut mode Siang/Senja.
   ========================================================= */

/* ---------- 1. TESTIMONI ---------- */
.s-testi { padding: 12vh var(--pad); }
.s-testi__head {
  max-width: 1240px; margin: 0 auto clamp(28px, 5vh, 48px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.s-testi__head h2 { margin-top: 12px; font-size: clamp(38px, 5vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }

/* ringkasan nilai ulasan (tautan ke Google Maps) */
.testi-rate { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; text-decoration: none; color: var(--white); }
.testi-rate b { font-family: var(--font-judul); font-size: clamp(46px, 4.2vw, 66px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.testi-rate span { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-ket); color: var(--muted-d); transition: color .25s; }
.testi-rate i { font-style: normal; font-size: 17px; letter-spacing: .16em; color: var(--amber-2); }
.testi-rate:hover span { color: var(--white); }

.testi { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tcard {
  margin: 0; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 2.3vw, 36px); border-radius: 20px;
  border: 1px solid var(--line-d); background: rgba(255, 255, 255, .04);
}
.tcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tcard__stars { font-size: 16px; letter-spacing: .18em; color: var(--amber-2); }
/* tanda kutip besar sebagai hiasan */
.tcard__top::after { content: '\201D'; font-family: var(--font-judul); font-size: 72px; font-weight: 800; line-height: .7; height: 34px; color: rgba(var(--accent-rgb), .35); }
.tcard blockquote {
  flex: 1; margin: 0; font-family: var(--font-judul); font-size: clamp(19px, 1.5vw, 23px); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.38; text-wrap: pretty;
}
.tcard figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-d); }
.tcard__ava {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .2); color: var(--amber-2); font-family: var(--font-judul); font-size: 17px; font-weight: 800;
}
.tcard figcaption b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.tcard figcaption small { display: block; margin-top: 2px; font-size: var(--fs-ket); color: var(--muted-d); }
/* kartu tengah: warna aksen penuh supaya barisnya tidak datar */
.tcard--hot { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.tcard--hot .tcard__stars { color: inherit; }
.tcard--hot .tcard__top::after { color: inherit; opacity: .28; }
.tcard--hot figcaption { border-top-color: currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); }
.tcard--hot .tcard__ava { background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.tcard--hot figcaption small { color: inherit; opacity: .72; }
html[data-mode="siang"] .tcard:not(.tcard--hot) { background: rgba(255, 255, 255, .5); }

/* ---------- 2. FAQ ---------- */
.s-faq { padding: 12vh var(--pad); }
.faq { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 108px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq__head h2 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.faq__lead { max-width: 34ch; font-size: var(--fs-isi); line-height: 1.65; color: var(--muted-d); }
.faq__head .btn { margin-top: 6px; }

.faq__list { border-top: 1px solid var(--line-d); }
.faq__item { border-bottom: 1px solid var(--line-d); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-family: var(--font-judul); font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2;
  transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--amber-2); }
.faq__item summary:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 2px; border-radius: 6px; }
/* tombol +/− */
.faq__item summary i {
  flex: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); color: var(--white);
  transition: background .3s, border-color .3s, color .3s;
}
.faq__item summary i::before, .faq__item summary i::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%;
  transition: rotate .35s cubic-bezier(.2, .8, .2, 1);
}
.faq__item summary i::after { rotate: 90deg; }
.faq__item[open] summary i { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.faq__item[open] summary i::after { rotate: 0deg; }
.faq__a { max-width: 64ch; padding: 0 62px 26px 4px; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--muted-d); animation: faqIn .45s cubic-bezier(.2, .8, .2, 1); }
.faq__a p + p { margin-top: .8em; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 3. PETA & CARA KE SINI ---------- */
.lokasi {
  width: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: stretch;
  padding-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--line-d);
}
.lokasi__info { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lokasi__info h3 { font-size: clamp(26px, 2.4vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.lokasi__steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; counter-reset: langkah; }
.lokasi__steps li {
  counter-increment: langkah; position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0 16px 52px; border-top: 1px solid var(--line-d);
}
.lokasi__steps li:last-child { border-bottom: 1px solid var(--line-d); }
.lokasi__steps li::before {
  content: counter(langkah); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-d); font-family: var(--font-judul); font-size: 15px; font-weight: 800; color: var(--amber-2);
}
.lokasi__steps b { font-size: 17px; font-weight: 700; line-height: 1.35; }
.lokasi__steps span { font-size: var(--fs-isi); line-height: 1.6; color: var(--muted-d); }
.lokasi__map { position: relative; min-height: 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-d); background: rgba(var(--accent-rgb), .12); }
.lokasi__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* sebelum peta dimuat */
.lokasi__map::before { content: 'Memuat peta…'; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-ket); color: var(--muted-d); }

/* ---------- tablet & HP ---------- */
@media (max-width: 960px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq__head { position: static; }
  .lokasi { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .s-testi, .s-faq { padding-top: 10vh; padding-bottom: 10vh; }
  /* testimoni: geser ke samping (kartu berikutnya sedikit mengintip) */
  .testi {
    display: flex; gap: 12px; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .testi::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 86%; scroll-snap-align: start; }
  .faq__item summary { padding: 20px 0; gap: 14px; }
  .faq__a { padding: 0 0 22px; }
  .lokasi__map { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .faq__a { animation: none; } }
@media print { .lokasi__map { display: none; } }
