/* ==========================================================================
   Layanan: Building Permits (komponen bersama di services-ap.css)
   ========================================================================== */

/* ---------- 01 Tentang layanan + checklist ---------- */
.pm-about { padding: 130px 0 110px; }
.pm-about__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 64px; align-items: center; }
.pm-about__copy { display: flex; flex-direction: column; gap: 24px; }
.pm-about__visual { position: relative; min-height: 560px; }
.pm-about__photo { position: absolute; right: 0; top: 0; width: 72%; height: 78%; border-radius: 28px; background-size: cover; background-position: 55% 50%; transform: rotate(2deg); }
.pm-paper { position: absolute; left: 0; bottom: 0; width: 66%; border-radius: 20px; background: #fff; border: 1px solid #E1E7E3; box-shadow: 0 40px 70px -40px rgba(39,38,96,0.5); padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; transform: rotate(-2deg); }
.pm-paper__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed #E1E7E3; }
.pm-paper__ht { display: flex; flex-direction: column; gap: 2px; }
.pm-paper__tag { font-family: var(--mono); font-size: 10px; color: var(--green-text); }
.pm-paper__title { font-size: 16px; font-weight: 600; color: var(--navy); }
.pm-paper__count { font-family: var(--mono); font-size: 11px; color: var(--navy); }
.pm-paper__list { list-style: none; margin: 0; padding: 0; }
.pm-chk { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.pm-chk__box { width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; border: 2px solid #C9D3CD; background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; font-size: 16px; transform: scale(.9); transition: all .4s cubic-bezier(.2,1.4,.4,1); }
.pm-chk__t { font-size: 14.5px; font-weight: 500; color: var(--muted-2); transition: color .3s ease; }
.pm-chk.is-on .pm-chk__box { border-color: var(--green); background: var(--green); color: #fff; transform: scale(1); }
.pm-chk.is-on .pm-chk__t { color: var(--navy); }
.pm-paper__stamp { position: absolute; right: 22px; bottom: 22px; padding: 8px 14px; border: 3px solid var(--green); border-radius: 10px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--green-text); background: rgba(255,255,255,0.92); opacity: 0; transform: rotate(-14deg) scale(2.2); transition: opacity .25s ease, transform .5s cubic-bezier(.2,1.6,.4,1); pointer-events: none; }
.pm-paper__stamp.is-on { opacity: 1; transform: rotate(-14deg) scale(1); }

/* ---------- 02 Map layanan ---------- */
.pm-folder-sec { padding: 110px 0; }
.pm-folder { margin-top: 48px; }
.pm-folder__tabs { display: flex; gap: 6px; padding: 8px 0 0 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.pm-folder__tabs::-webkit-scrollbar { display: none; }
.pm-folder__tab { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 14px 22px 16px; border: none; border-radius: 18px 18px 0 0; background: #E4ECE7; color: var(--muted); font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transform: translateY(6px); transition: all .4s var(--ease); }
.pm-folder__tab .ms { font-size: 20px; }
.pm-folder__tab:hover { color: var(--navy); }
.pm-folder__tab.is-on { background: #fff; color: var(--navy); transform: translateY(1px); }
.pm-folder__card { position: relative; border-radius: 28px; background: #fff; border: 1px solid #E1E7E3; box-shadow: 0 40px 80px -50px rgba(39,38,96,0.45); overflow: hidden; }
.pm-folder__strip { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--green); z-index: 7; }
.pm-folder__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 460px; }
.pm-folder__content { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 44px 40px; }
.pm-folder__body[hidden] { display: none; }
.pm-folder__intro { display: flex; flex-direction: column; gap: 16px; }
.pm-folder__short { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .95; font-weight: 700; letter-spacing: -0.045em; color: var(--navy); }
.pm-folder__full { font-size: 17px; font-weight: 600; color: var(--green); }
.pm-folder__desc { margin: 0; font-size: 16px; line-height: 1.75; color: var(--text); max-width: 520px; }
.pm-folder__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pm-folder__foot .ap-pill[hidden] { display: none; }
.pm-folder__dots { display: flex; gap: 6px; }
.pm-folder__dot { width: 6px; height: 6px; border-radius: 6px; background: #C9D3CD; transition: all .4s ease; }
.pm-folder__dot.is-on { width: 26px; background: var(--green); }
.pm-folder__media { position: relative; min-height: 100%; background: #E9EEEB; overflow: hidden; }
.pm-folder__img { position: absolute; inset: 0; z-index: 1; background-size: cover; clip-path: inset(0 0 0 100%); }
.pm-folder__img.is-on { z-index: 3; clip-path: inset(0 0 0 0); }
.pm-folder__label { position: absolute; left: 22px; bottom: 22px; z-index: 6; padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,0.95); font-family: var(--mono); font-size: 11px; color: var(--navy); }

/* ---------- 03 Pengalaman ---------- */
.pm-exp { padding: 110px 0; }
.pm-exp__grid { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.5fr); gap: 48px; align-items: center; }
.pm-exp__copy { display: flex; flex-direction: column; gap: 22px; }
.pm-exp__title { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; color: var(--navy); }
.pm-exp__title span { color: var(--green); }
.pm-exp__stats { display: flex; flex-direction: column; border-top: 1px solid #E1E7E3; }
.pm-exp__stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid #E1E7E3; }
.pm-exp__num { font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; color: var(--navy); }
.pm-exp__lab { font-family: var(--mono); font-size: 11px; color: var(--green-text); text-align: right; }
.pm-exp__map-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pm-exp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chip { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid #E1E7E3; background: #fff; color: var(--navy); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.pm-chip:hover { border-color: var(--navy); }
.pm-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pm-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pm-chip__n { font-family: var(--mono); font-size: 10.5px; opacity: .8; }
.pm-exp__mapbox { position: relative; border-radius: 28px; background: #F3F7F5; padding: 28px; }
.pm-pin__icon { position: absolute; left: -12px; top: -30px; font-size: 30px; line-height: 1; color: var(--navy); font-variation-settings: 'FILL' 1; transform: scale(1); transform-origin: 50% 100%; transition: transform .3s ease, color .3s ease; }
.pm-pin.is-on .pm-pin__icon { color: var(--green); transform: scale(1.2); }
.pm-pin:hover .pm-pin__icon { color: var(--green); }
.pm-exp__strip { min-height: 96px; display: flex; gap: 10px; overflow-x: auto; }
.pm-exp__group { display: flex; gap: 10px; }
.pm-exp__group[hidden], .pm-exp__empty[hidden] { display: none; }
.pm-exp__item { flex: 0 0 240px; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #E1E7E3; }
.pm-exp__thumb { width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; background-size: cover; background-position: center; }
.pm-exp__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pm-exp__it { font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.pm-exp__loc { font-size: 11.5px; color: var(--muted); }
.pm-exp__empty { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 16px; border: 1px dashed #E1E7E3; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pm-exp__empty .ms { font-size: 20px; color: var(--green); }

/* ---------- 04 Proses (lacak berkas) ---------- */
.pm-track { position: relative; height: 260vh; background: #F3F7F5; }
.pm-track__sticky { position: sticky; top: 78px; height: calc(100vh - 78px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.pm-track__wrap { width: 100%; }
.pm-track__body { position: relative; margin-top: 72px; }
.pm-track__line { position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: repeating-linear-gradient(90deg, #C9D3CD 0 10px, transparent 10px 18px); border-radius: 3px; }
.pm-track__fill { position: absolute; left: 0; top: 10px; width: 0; height: 3px; background: var(--green); border-radius: 3px; }
.pm-track__mark { position: absolute; left: 0; top: 11px; z-index: 3; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 16px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 20px 40px -16px rgba(39,38,96,0.6); }
.pm-track__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.pm-tstep { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
.pm-tstep__dot { position: relative; z-index: 2; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 4px solid #F3F7F5; box-shadow: 0 0 0 2px #C9D3CD; transition: all .4s ease; }
.pm-tstep.is-done .pm-tstep__dot, .pm-tstep.is-cur .pm-tstep__dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.pm-tstep__card { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #E1E7E3; transition: all .5s var(--ease); }
.pm-tstep.is-cur .pm-tstep__card { background: var(--navy); border-color: var(--navy); transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(39,38,96,0.55); }
.pm-tstep__top { display: flex; justify-content: space-between; align-items: center; }
.pm-tstep__icon { width: 42px; height: 42px; border-radius: 12px; background: #F3F7F5; color: var(--muted-2); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: all .4s ease; }
.pm-tstep.is-done .pm-tstep__icon { background: var(--green-tint); color: var(--green-text); }
.pm-tstep.is-cur .pm-tstep__icon { background: var(--green); color: #fff; }
.pm-tstep__status { font-family: var(--mono); font-size: 11px; color: #9A9DAA; }
.pm-tstep.is-done .pm-tstep__status { color: var(--green-text); }
.pm-tstep.is-cur .pm-tstep__status { color: #9BE3A6; }
.pm-tstep__title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.pm-tstep__desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.pm-tstep.is-cur .pm-tstep__title { color: #fff; }
.pm-tstep.is-cur .pm-tstep__desc { color: rgba(255,255,255,0.85); }

/* ---------- 05 Lingkaran keunggulan ---------- */
.pm-why { padding: 120px 0; }
.pm-circles { display: flex; justify-content: center; flex-wrap: nowrap; margin-top: 64px; padding: 20px 0; }
.pm-circle { position: relative; flex: 0 0 auto; width: 230px; height: 230px; margin: 0 -14px; border-radius: 50%; border: 1.5px solid #C9D3CD; background: #F3F7F5; color: var(--navy); font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 6%; text-align: center; transform: scale(.94); transition: all .55s var(--ease); }
.pm-circle--white { background: #fff; }
.pm-circle.is-on { background: var(--green-text); border-color: var(--green-text); color: #fff; transform: scale(1.12); box-shadow: 0 30px 60px -24px rgba(42,143,58,0.6); }
.pm-circle__icon { font-size: 30px; transition: font-size .4s ease; }
.pm-circle.is-on .pm-circle__icon { font-size: 40px; }
.pm-circle__title { font-size: 15px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.pm-circle.is-on .pm-circle__title { font-size: 17px; }
.pm-why__cap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; text-align: center; }
.pm-why__desc { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.5; font-weight: 500; color: var(--navy); max-width: 640px; min-height: 3em; }

/* ---------- 06 Contoh proyek ---------- */
.pm-pj-sec { padding: 110px 0; }
.pm-pj-sec__outline { left: -1vw; right: auto; top: auto; bottom: 20px; }
.pm-pjs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 48px; }
.pm-pj-cell { min-width: 0; }
.pm-pj { position: relative; display: block; height: 500px; border-radius: 28px; overflow: hidden; background: var(--navy); color: #fff; }
.pm-pj:hover, .pm-pj:focus-visible { color: #fff; }
.pm-pj__img { position: absolute; inset: 0; background-size: cover; transform: scale(1); transition: transform 1.2s var(--ease); }
.pm-pj__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,38,96,0.1) 30%, rgba(39,38,96,0.92) 100%); }
.pm-pj__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.pm-pj__stamp { position: absolute; right: 28px; top: 28px; padding: 10px 16px; border: 3px solid #fff; border-radius: 12px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: #fff; opacity: 0; transform: rotate(-12deg) scale(2); transition: opacity .25s ease, transform .5s cubic-bezier(.2,1.6,.4,1); }
.pm-pj__svc { position: absolute; left: 28px; top: 28px; padding: 8px 14px; border-radius: 999px; background: var(--green); font-family: var(--mono); font-size: 11px; color: #fff; }
.pm-pj__body { position: absolute; left: 30px; right: 30px; bottom: 30px; display: flex; flex-direction: column; gap: 14px; }
.pm-pj__loc { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.88); }
.pm-pj__loc .ms { font-size: 18px; color: var(--green); }
.pm-pj__title { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.pm-pj__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.pm-pj__more-in { overflow: hidden; }
.pm-pj__facts { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.2); }
.pm-pj__fact { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pm-pj__lab { font-family: var(--mono); font-size: 10.5px; color: #9BE3A6; }
.pm-pj:hover .pm-pj__img, .pm-pj:focus-visible .pm-pj__img { transform: scale(1.06); }
.pm-pj:hover .pm-pj__more, .pm-pj:focus-visible .pm-pj__more { grid-template-rows: 1fr; }
.pm-pj:hover .pm-pj__stamp, .pm-pj:focus-visible .pm-pj__stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
@media (hover: none) {
  .pm-pj__more { grid-template-rows: 1fr; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1099px) {
  .pm-about__grid, .pm-folder__grid, .pm-exp__grid { grid-template-columns: minmax(0,1fr); }
  .pm-about__visual { min-height: 520px; }
  .pm-paper { width: 88%; }
  .pm-folder__media { min-height: 300px; }
  .pm-folder__content { padding: 36px 28px; }
  .pm-exp__mapbox { padding: 16px; }
  .pm-track { height: auto; }
  .pm-track__sticky { position: relative; top: auto; height: auto; overflow: visible; padding: 100px 0; }
  .pm-track__body { margin-top: 40px; }
  .pm-track__line { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: repeating-linear-gradient(180deg, #C9D3CD 0 10px, transparent 10px 18px); }
  .pm-track__fill { left: 10px; top: 0; width: 3px; height: 0; }
  .pm-track__mark { display: none; }
  .pm-track__steps { grid-template-columns: minmax(0,1fr); }
  .pm-tstep { flex-direction: row; align-items: flex-start; }
  .pm-tstep.is-cur .pm-tstep__card { transform: none; }
  .pm-circles { flex-wrap: wrap; }
  .pm-circle { width: 150px; height: 150px; margin: 6px; gap: 8px; }
  .pm-circle__title, .pm-circle.is-on .pm-circle__title { font-size: 12.5px; }
  .pm-circle__icon { font-size: 26px; }
  .pm-circle.is-on .pm-circle__icon { font-size: 32px; }
  .pm-pjs { grid-template-columns: minmax(0,1fr); }
  .pm-pj { height: 420px; }
}
@media (max-width: 640px) {
  .pm-about { padding: 96px 0 80px; }
  .pm-folder-sec, .pm-exp, .pm-pj-sec { padding: 80px 0; }
  .pm-why { padding: 88px 0; }
  .pm-track__sticky { padding: 80px 0; }
  .pm-about__visual { min-height: 480px; }
  .pm-paper { width: 94%; padding: 18px 18px; }
  .pm-chk__t { font-size: 13.5px; }
  .pm-paper__stamp { right: 14px; bottom: 14px; }
  .pm-folder__tabs { padding-left: 10px; }
  .pm-folder__tab { padding: 12px 16px 14px; font-size: 13.5px; }
  .pm-folder__content { padding: 28px 20px; }
  .pm-circle { width: 140px; height: 140px; margin: 4px; }
  .pm-pj__body { left: 22px; right: 22px; bottom: 22px; }
  .pm-pj__svc { left: 20px; top: 20px; }
  .pm-pj__stamp { right: 20px; top: 20px; font-size: 11px; padding: 8px 12px; }
  .pm-exp__item { flex-basis: 220px; }
}
