/* ==========================================================================
   Layanan: Perencanaan Bangunan (khusus halaman). Komponen bersama: services-pc.css
   ========================================================================== */

/* ---------- 01 Tentang layanan + slider pembanding ---------- */
.pl-about { position: relative; overflow: clip; padding: 130px 0 110px; }
.pl-about__grid { display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.2fr); gap: 56px; align-items: center; }
.pl-about__copy { display: flex; flex-direction: column; gap: 24px; }
.pl-cmp { position: relative; height: 540px; border-radius: 28px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--navy); }
.pl-cmp:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.pl-cmp__photo { position: absolute; inset: 0; background-size: cover; background-position: 50% 40%; }
.pl-cmp__photo--bw { filter: grayscale(1) contrast(1.4) brightness(1.15); }
.pl-cmp__plan { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.pl-cmp__tint { position: absolute; inset: 0; background: var(--navy); mix-blend-mode: multiply; opacity: 0.82; }
.pl-cmp__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.pl-cmp__tag { position: absolute; top: 20px; padding: 8px 12px; border-radius: 10px; font-family: var(--mono); font-size: 10.5px; }
.pl-cmp__tag--l { left: 20px; border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.pl-cmp__tag--r { right: 20px; background: rgba(255,255,255,0.94); color: var(--navy); }
.pl-cmp__divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.pl-cmp__divider .ms { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 0 0 8px rgba(57,181,74,0.25), 0 20px 40px -14px rgba(0,0,0,0.5); }
.pl-cmp__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(39,38,96,0.8); font-family: var(--mono); font-size: 10.5px; color: #fff; white-space: nowrap; pointer-events: none; }
.pl-cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }

/* ---------- 02 Lapisan disiplin ---------- */
.pl-ly { position: relative; overflow: clip; padding: 110px 0; background: var(--pc-soft); }
.pl-ly__outline { right: -2vw; top: 30px; }
.pl-ly__grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; margin-top: 40px; align-items: center; }
.pl-ly__stack { position: relative; height: 560px; perspective: 1400px; }
.pl-ly__plane { --plane: 320px; position: absolute; left: 50%; top: 56%; width: var(--plane); height: var(--plane); margin-left: calc(var(--plane) / -2); margin-top: calc(var(--plane) / -2); transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-42deg); }
.pl-ly__sheet {
  --gc: rgba(39,38,96,0.12);
  position: absolute; inset: 0; padding: 0; border: 2px solid rgba(39,38,96,0.25); border-radius: 22px; background: rgba(255,255,255,0.72); cursor: pointer; overflow: hidden;
  transition: transform .7s var(--ease), border-color .4s ease, box-shadow .5s ease;
  box-shadow: -16px 16px 40px -24px rgba(39,38,96,0.4);
}
.pl-ly__sheet.is-on { --gc: rgba(57,181,74,0.25); border-color: var(--green); background: #fff; box-shadow: 0 0 0 6px rgba(57,181,74,0.2), -30px 30px 60px -20px rgba(39,38,96,0.45); }
.pl-ly__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.25; transition: opacity .5s ease; }
.pl-ly__sheet.is-on .pl-ly__img { opacity: 0.95; }
.pl-ly__lines { position: absolute; inset: 0; background-image: linear-gradient(var(--gc) 1px, transparent 1px), linear-gradient(90deg, var(--gc) 1px, transparent 1px); background-size: 24px 24px; }
.pl-ly__tag { position: absolute; left: 18px; bottom: 16px; padding: 6px 10px; border-radius: 8px; background: var(--navy); font-family: var(--mono); font-size: 11px; color: #fff; }
.pl-ly__sheet.is-on .pl-ly__tag { background: var(--green); }
.pl-ly__side { display: flex; flex-direction: column; gap: 22px; }
.pl-ly__panel { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 24px; background: var(--navy); }
.pl-ly__panel-top { display: flex; justify-content: space-between; align-items: center; }
.pl-ly__panel-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pl-ly__panel-num { font-family: var(--mono); font-size: 11px; color: var(--pc-mint); }
.pl-ly__panel-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.pl-ly__panel-desc { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.88); }
.pl-ly__chips { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.pl-ly__chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--pc-line); background: transparent; font-family: inherit; text-align: left; cursor: pointer; transition: all .35s ease; }
.pl-ly__chip .ms { font-size: 22px; color: var(--muted-2); }
.pl-ly__chip span:last-child { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.pl-ly__chip:hover { border-color: rgba(57,181,74,0.6); }
.pl-ly__chip.is-on { background: #fff; border-color: var(--green); }
.pl-ly__chip.is-on .ms { color: var(--green); }

/* ---------- 03 Fase pekerjaan ---------- */
.pl-ph { position: relative; overflow: clip; padding: 120px 0; }
.pl-ph__lead { margin: 22px 0 0; font-size: 16px; line-height: 1.75; color: var(--text); max-width: 720px; }
.pl-ph__tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 40px; }
.pl-ph__tab { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--pc-line); background: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: all .4s ease; }
.pl-ph__tab:hover { border-color: var(--navy); }
.pl-ph__tab-num { font-family: var(--mono); font-size: 11px; color: var(--green-text); }
.pl-ph__tab-title { font-size: 15.5px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.pl-ph__tab-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--green); transition: width .6s ease; }
.pl-ph__tab.is-done .pl-ph__tab-bar { width: 100%; }
.pl-ph__tab.is-on { background: var(--navy); border-color: var(--navy); }
.pl-ph__tab.is-on .pl-ph__tab-title { color: #fff; }
.pl-ph__tab.is-on .pl-ph__tab-num { color: var(--pc-mint); }
.pl-ph__sheet { margin-top: 20px; border-radius: 24px; border: 2px solid var(--navy); background: #fff; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.pl-ph__media { position: relative; min-height: 460px; overflow: hidden; background: var(--pc-soft); }
.pl-ph__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity .6s ease, transform 1.2s var(--ease); }
.pl-ph__img.is-bw { filter: grayscale(1) contrast(1.2); }
.pl-ph__img.is-on { opacity: 1; transform: scale(1); }
.pl-ph__grid { position: absolute; inset: 0; mix-blend-mode: multiply; background-image: linear-gradient(rgba(39,38,96,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(39,38,96,0.14) 1px, transparent 1px); background-size: var(--grid) var(--grid); transition: background-size .8s ease; }
.pl-ph__level { position: absolute; left: 16px; top: 16px; font-family: var(--mono); font-size: 10.5px; color: var(--navy); padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.92); }
.pl-ph__info { display: flex; flex-direction: column; border-left: 2px solid var(--navy); }
.pl-ph__body { padding: 26px; border-bottom: 2px solid var(--navy); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pl-ph__phase { font-family: var(--mono); font-size: 10.5px; color: var(--green-text); }
.pl-ph__title { font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--navy); }
.pl-ph__desc { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.pl-ph__block { display: grid; grid-template-columns: 1fr 1fr; }
.pl-ph__cell { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; }
.pl-ph__cell:nth-child(1) { border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.pl-ph__cell:nth-child(2) { border-bottom: 1px solid var(--navy); }
.pl-ph__cell:nth-child(3) { border-right: 1px solid var(--navy); }
.pl-ph__cell > span:first-child { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.pl-ph__cell > span:last-child { font-size: 13px; font-weight: 600; color: var(--navy); }
.pl-ph__cell--logo { align-items: center; justify-content: center; background: var(--navy); }
.pl-ph__cell--logo img { height: 22px; width: auto; }

/* ---------- 04 Papan gambar ---------- */
.pl-why { position: relative; overflow: clip; padding: 110px 0; background: var(--pc-soft); }
.pl-nt {
  position: relative; margin-top: 40px; height: 560px; border-radius: 28px; overflow: hidden; touch-action: none;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.pl-nt__label { position: absolute; right: 20px; bottom: 16px; font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,0.6); }
.pl-nt__card {
  position: absolute; left: var(--x); top: var(--y); width: 230px; padding: 22px; border-radius: 18px; background: #fff; cursor: grab;
  transform: rotate(var(--r)); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); transition: transform .3s ease, box-shadow .3s ease;
  user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; gap: 12px;
}
.pl-nt__card.is-drag { cursor: grabbing; transform: rotate(0deg) scale(1.05); box-shadow: 0 40px 60px -20px rgba(0,0,0,0.6); }
.pl-nt__pin { position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--green); box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
.pl-nt__top { display: flex; justify-content: space-between; align-items: center; }
.pl-nt__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--green-tint); color: var(--green-text); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pl-nt__num { font-family: var(--mono); font-size: 11px; color: #9A9DAA; }
.pl-nt__title { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.pl-nt__desc { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.pl-nt__card.is-dark { background: var(--green-text); }
.pl-nt__card.is-dark .pl-nt__icon { background: #fff; }
.pl-nt__card.is-dark .pl-nt__num, .pl-nt__card.is-dark .pl-nt__title { color: #fff; }
.pl-nt__card.is-dark .pl-nt__desc { color: rgba(255,255,255,0.95); }

/* ---------- 05 Contoh proyek ---------- */
.pl-pj { position: relative; overflow: clip; padding: 110px 0; }
.pl-pj__outline { left: -1vw; bottom: 20px; }
.pl-pj__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 48px; }
.pl-pj__card { display: flex; flex-direction: column; height: 100%; border-radius: 22px; border: 2px solid var(--navy); background: #fff; overflow: hidden; color: var(--navy); transition: all .45s var(--ease); }
.pl-pj__card:hover, .pl-pj__card:focus-visible { color: var(--navy); border-color: var(--green); transform: translateY(-8px); }
.pl-pj__media { position: relative; height: 280px; overflow: hidden; background: var(--navy); }
.pl-pj__photo { position: absolute; inset: 0; background-size: cover; }
.pl-pj__photo--bw { filter: grayscale(1) contrast(1.4) brightness(1.15); }
.pl-pj__bp { position: absolute; inset: 0; clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.77,0,.18,1); }
.pl-pj__card:hover .pl-pj__bp, .pl-pj__card:focus-visible .pl-pj__bp { clip-path: inset(0 100% 0 0); }
.pl-pj__tint { position: absolute; inset: 0; background: var(--navy); mix-blend-mode: multiply; opacity: 0.82; }
.pl-pj__lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 40px 40px; }
.pl-pj__mode { position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px; background: var(--green); font-family: var(--mono); font-size: 10.5px; color: #fff; }
.pl-pj__mode-built { display: none; }
.pl-pj__card:hover .pl-pj__mode-plan, .pl-pj__card:focus-visible .pl-pj__mode-plan { display: none; }
.pl-pj__card:hover .pl-pj__mode-built, .pl-pj__card:focus-visible .pl-pj__mode-built { display: inline; }
.pl-pj__meta { display: grid; grid-template-columns: 1fr auto; border-top: 2px solid var(--navy); transition: border-color .45s var(--ease); }
.pl-pj__card:hover .pl-pj__meta { border-top-color: var(--green); }
.pl-pj__text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-right: 1px solid var(--pc-line); }
.pl-pj__title { font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--navy); }
.pl-pj__loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pl-pj__loc .ms { font-size: 16px; color: var(--green); }
.pl-pj__num { display: flex; align-items: center; justify-content: center; padding: 0 18px; font-family: var(--mono); font-size: 11px; color: var(--green-text); }
.pl-pj__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 18px; border-top: 1px solid var(--pc-line); margin-top: auto; }
.pl-pj__tags span { padding: 5px 11px; border-radius: 999px; background: var(--green-tint); font-family: var(--mono); font-size: 10.5px; color: var(--green-text); }

/* ---------- Responsif (desain: narrow < 1100px) ---------- */
@media (max-width: 1099px) {
  .pl-about__grid { grid-template-columns: minmax(0,1fr); }
  .pl-cmp { height: 400px; }
  .pl-ly__grid { grid-template-columns: minmax(0,1fr); }
  .pl-ly__stack { height: 440px; }
  .pl-ly__plane { --plane: 240px; }
  .pl-ph__tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pl-ph__sheet { grid-template-columns: minmax(0,1fr); }
  .pl-ph__media { min-height: 300px; }
  .pl-ph__info { border-left: 0; border-top: 2px solid var(--navy); }
  .pl-nt { height: auto; padding: 34px 20px 44px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 18px; touch-action: auto; }
  .pl-nt__card { position: relative; left: auto; top: auto; width: auto; cursor: default; transform: rotate(calc(var(--r) / 2)); }
  .pl-pj__grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .pl-about { padding: 96px 0 80px; }
  .pl-ly, .pl-why, .pl-pj { padding: 80px 0; }
  .pl-ph { padding: 88px 0; }
  .pl-cmp { height: 340px; border-radius: 22px; }
  .pl-cmp__tag { top: 14px; font-size: 9.5px; padding: 6px 9px; }
  .pl-cmp__tag--l { left: 14px; }
  .pl-cmp__tag--r { right: 14px; }
  .pl-ly__stack { height: 360px; }
  .pl-ly__plane { --plane: 200px; }
  .pl-ly__panel { padding: 24px; }
  .pl-ph__tab { padding: 14px 16px; }
  .pl-ph__tab-title { font-size: 14px; }
  .pl-nt { grid-template-columns: minmax(0,1fr); }
  .pl-pj__media { height: 240px; }
}
