/* ==========================================================================
   Layanan Building Assessment & Building Permits: komponen bersama
   (hero slideshow, judul seksi, pill, peta pin, CTA + form).
   Gaya khusus: services-assessment.css, services-permits.css
   ========================================================================== */
.ap-page { background: #fff; color: var(--text); }
.ap-wrap { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ap-sec { position: relative; overflow: clip; }
.ap-sec--tint { background: #F3F7F5; }
.ap-plus { position: absolute; font-family: var(--mono); font-size: 20px; line-height: 1; color: rgba(57,181,74,0.6); pointer-events: none; }
.ap-outline {
  position: absolute; right: -2vw; top: 30px; font-size: clamp(120px, 17vw, 250px); line-height: .85; font-weight: 700;
  letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(39,38,96,0.06); white-space: nowrap;
  pointer-events: none; user-select: none;
}
.is-green { color: var(--green); }

/* Judul seksi */
.ap-eyebrow { font-family: var(--mono); font-size: 11.5px; color: var(--green-text); }
.ap-eyebrow--sm { font-size: 11px; }
.ap-eyebrow--light { color: #9BE3A6; }
.ap-h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; color: var(--navy); }
.ap-h2 span { color: var(--green); }
.ap-page h2:not(.ap-cta__title), .ap-page h3 { text-wrap: wrap; }
.ap-h2--about { font-size: clamp(32px, 3.8vw, 54px); }
.ap-p { margin: 0; font-size: 16.5px; line-height: 1.8; color: var(--text); }
.ap-p--sm { font-size: 15.5px; line-height: 1.75; }
.ap-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ap-head__text { display: flex; flex-direction: column; gap: 18px; }
.ap-head__text--780 { max-width: 780px; }
.ap-head__text--wide { max-width: 760px; }
.ap-hint { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ap-hint .ms { font-size: 17px; color: var(--green); }

/* Tombol pill */
.ap-pill { display: inline-flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; padding: 7px 7px 7px 22px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.ap-pill > .ms { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ap-pill--green { background: var(--green); color: #fff; font-weight: 600; }
.ap-pill--green:hover { background: var(--green-text); color: #fff; }
.ap-pill--green > .ms { background: #fff; color: var(--navy); }
.ap-pill--outline { border: 1px solid var(--navy); color: var(--navy); font-weight: 500; }
.ap-pill--outline:hover { background: var(--navy); color: #fff; }
.ap-pill--outline > .ms { background: var(--green); color: #fff; }

/* ---------- Hero ---------- */
.ap-hero {
  position: relative; background-color: #fff;
  background-image: linear-gradient(rgba(39,38,96,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(39,38,96,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ap-hero__stage { position: relative; overflow: hidden; }
.ap-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; overflow: hidden; z-index: 0; isolation: isolate; }
.ap-hero__layer { position: absolute; inset: -28px; z-index: 0; isolation: isolate; transition: transform .6s var(--ease); }
.ap-hero__slide { position: absolute; inset: 0; z-index: 1; background-size: cover; clip-path: inset(0 0 0 0); transform: scale(1.12); }
.ap-hero__slide.is-on { z-index: 3; transform: scale(1.06); }
.ap-hero__fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0) 58%); }
.ap-hero__fade-b { position: absolute; inset: auto 0 0 0; z-index: 1; height: 40%; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 100%); }
.ap-hero__inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 104px var(--gutter) 188px; }
.ap-hero__copy { max-width: 780px; display: flex; flex-direction: column; gap: 26px; transition: transform .6s var(--ease); }
.ap-eyebrow-line { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text); }
.ap-eyebrow-line > span { width: 32px; height: 2px; background: var(--green); }
.ap-hero__title { margin: 0; font-weight: 700; letter-spacing: -0.04em; color: var(--navy); }
.ap-hero__title--lg { font-size: clamp(46px, 6.2vw, 92px); line-height: 1.02; }
.ap-hero__title--md { font-size: clamp(38px, 5vw, 76px); line-height: 1.04; }
.ap-hero__mask { display: block; overflow: hidden; padding: .02em .06em .22em 0; margin-bottom: -.18em; }
.ap-hero__mask > span { display: block; white-space: nowrap; }
.ap-hero__lead { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.7; color: var(--text-strong); }
.ap-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ap-hero__ctrl { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: 112px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ap-hero__chip { padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 40px -24px rgba(39,38,96,0.5); }
.ap-hero__num { font-family: var(--mono); font-size: 11px; color: var(--green-text); white-space: nowrap; }
.ap-hero__label { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.ap-hero__dots { display: flex; gap: 6px; }
.ap-hero__dot { width: 8px; height: 6px; padding: 0; border: none; border-radius: 6px; background: rgba(255,255,255,0.85); cursor: pointer; transition: width .4s ease, background .4s ease; }
.ap-hero__dot.is-on { width: 34px; background: var(--green); }
.ap-hero__quick-wrap { position: relative; z-index: 2; max-width: var(--container); margin: -84px auto 0; padding: 0 var(--gutter); }
.ap-hero__quick { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(39,38,96,0.3); border: 1px solid #E1E7E3; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); overflow: hidden; }
.ap-hero__qitem { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-right: 1px solid #E1E7E3; color: var(--navy); transition: background .2s ease; }
.ap-hero__qitem:last-child { border-right: 0; }
.ap-hero__qitem:hover { background: #F3F7F5; color: var(--navy); }
.ap-hero__qicon { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; background: var(--green-tint); color: var(--green-text); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.ap-hero__qtext { display: flex; flex-direction: column; gap: 3px; }
.ap-hero__qnum { font-family: var(--mono); font-size: 10.5px; color: var(--green-text); }
.ap-hero__qtitle { font-size: 16px; font-weight: 600; color: var(--navy); }

/* ---------- Peta pin ---------- */
.ap-map { position: relative; width: 100%; aspect-ratio: 2981 / 1191; }
.ap-map__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-pin { position: absolute; width: 0; height: 0; padding: 0; border: none; background: transparent; cursor: pointer; z-index: 4; }
.ap-pin.is-on { z-index: 6; }
.ap-pin__pulse { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); animation: apPulse 2s ease-out infinite; pointer-events: none; }
.ap-pin.is-on .ap-pin__pulse { background: var(--green); }
@keyframes apPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- CTA + form ---------- */
.ap-cta { position: relative; max-width: 1400px; margin: 0 auto; border-radius: 36px; background: var(--navy); overflow: hidden; }
.ap-cta__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 44px 44px; }
.ap-cta__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ap-cta__ring--a { right: -160px; top: -160px; width: 520px; height: 520px; border: 1.5px dashed rgba(255,255,255,0.14); }
.ap-cta__ring--b { right: -60px; top: -60px; width: 320px; height: 320px; border: 1.5px dashed rgba(57,181,74,0.45); }
.ap-cta__inner { position: relative; max-width: 1288px; margin: 0 auto; padding: 88px var(--gutter); display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch; }
.ap-cta__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.ap-cta__head { display: flex; flex-direction: column; gap: 22px; }
.ap-cta__eyebrow { font-family: var(--mono); font-size: 11.5px; color: #A9ABD0; }
.ap-cta__title {
  margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; color: transparent;
  background-image: linear-gradient(90deg, #fff 0%, #fff 50%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.22) 100%);
  background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; text-wrap: balance;
}
.ap-cta__title span { color: var(--green); }
.ap-cta__lead { margin: 0; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,0.8); max-width: 440px; }
.ap-cta__list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.14); }
.ap-cta__row { display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); color: #fff; }
.ap-cta__row:hover { color: var(--green-light); }
.ap-cta__icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(57,181,74,0.16); color: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ap-cta__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-cta__lab { font-family: var(--mono); font-size: 10.5px; color: #A9ABD0; }
.ap-cta__val { font-size: 15.5px; font-weight: 500; overflow-wrap: anywhere; }
.ap-cta__val--sm { font-size: 14.5px; line-height: 1.5; }
.ap-cta__arrow { font-size: 18px; }
.ap-cta__card { flex: 1 1 460px; min-width: 0; background: #fff; border-radius: 26px; padding: 34px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5); }

.ap-form { display: flex; flex-direction: column; gap: 18px; }
.ap-form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ap-form__title { font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.ap-form__tag { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.ap-form__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.ap-form__field { display: flex; flex-direction: column; gap: 6px; }
.ap-form__lab { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ap-form input, .ap-form textarea { width: 100%; border-radius: 12px; border: 1px solid #E1E7E3; background: #fff; font-family: inherit; font-size: 14.5px; color: var(--navy); outline: none; transition: border-color .2s ease; }
.ap-form input { height: 48px; padding: 0 14px; }
.ap-form textarea { padding: 12px 14px; resize: vertical; }
.ap-form input:focus, .ap-form textarea:focus { border-color: var(--green); background: #fff; }
.ap-form__svc { display: flex; flex-direction: column; gap: 8px; }
.ap-form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid #E1E7E3; background: #fff; color: var(--navy); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ap-chip .ms { font-size: 16px; }
.ap-chip:hover { border-color: var(--navy); }
.ap-chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ap-form__error { margin: 0; font-size: 13.5px; line-height: 1.5; color: #C0392B; }
.ap-form__submit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 7px 7px 24px; border-radius: 999px; border: none; background: var(--green); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.ap-form__submit:hover { background: var(--green-hover); }
.ap-form__submit:disabled { opacity: .7; cursor: wait; }
.ap-form__submit .ms { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ap-form__sent { display: none; min-height: 420px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
[data-form-wrap].is-sent .ap-form { display: none; }
[data-form-wrap].is-sent .ap-form__sent { display: flex; }
.ap-form__sent-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green-text); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.ap-form__sent-title { font-size: 26px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; }
.ap-form__sent-text { font-size: 15.5px; line-height: 1.7; color: var(--text); max-width: 380px; }
.ap-form__again { margin-top: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--navy); background: transparent; color: var(--navy); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ap-form__again:hover { background: var(--navy); color: #fff; }

/* ---------- Responsif ---------- */
@media (max-width: 1099px) {
  .ap-hero__media { width: 100%; }
  .ap-hero__fade { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, rgba(255,255,255,0.4) 66%, rgba(255,255,255,0) 82%); }
  .ap-hero__inner { padding: 56px var(--gutter) 460px; }
}
@media (max-width: 640px) {
  .ap-hero__mask > span { white-space: normal; }
  .ap-hero__qitem { border-right: 0; border-bottom: 1px solid #E1E7E3; padding: 20px 22px; }
  .ap-hero__qitem:last-child { border-bottom: 0; }
  .ap-hero__ctrl { bottom: 108px; }
  .ap-hero__label { white-space: normal; }
  .ap-cta { border-radius: 28px; }
  .ap-cta__inner { padding: 64px var(--gutter); gap: 40px; }
  .ap-cta__info, .ap-cta__card { flex-basis: 100%; }
  .ap-cta__card { padding: 24px 20px; }
  .ap-pill { white-space: normal; }
}
