/* === LAYANAN detail === */
/* ===== LAYANAN DETAIL ===== */
.detail-grid{
  display:grid !important;
  grid-template-columns: 450px 1fr !important;
  gap:60px !important;
  align-items:start !important;
}

.detail-title{
  font-size:32px;
  font-weight:800;
  margin:0 0 16px;
}

.detail-desc{
  font-size:14px;
  line-height:1.8;
  color:rgba(255,255,255,0.85);
  margin: 10px 0 18px;
  max-width: 720px;
}

.detail-subtitle{
  font-size:14px;
  font-weight:800;
  margin:18px 0 12px;
}

.detail-list{
  margin:0 0 18px 18px;
  padding:0;
  font-size:14px;
  line-height:1.8;
  color:rgba(255,255,255,0.85);
}

.detail-contact{
  font-size:14px;
  color:rgba(255,255,255,0.85);
  margin:0 0 18px;
}

@media (max-width: 1100px){
  .detail-grid{
    grid-template-columns: 1fr !important;
    gap:28px !important;
  }
}
.hero-subtitle{
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
  opacity: .95;
}
/* Fade halus untuk background hero */
.hero{
  position: relative;
  overflow: hidden;
}

/* layer background 1 & 2 untuk cross-fade */
.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 800ms ease;
  opacity: 0;
  z-index: 0;
}

.hero-bg.is-active{
  opacity: 1;
}

/* pastikan isi hero di atas background */
.hero-inner, .hero-content{
  position: relative;
  z-index: 2;
}

/* optional: overlay gelap biar teks kebaca */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}
.hero{
  position: relative;
  min-height: 800px;
  overflow: hidden;
}

/* 2 layer background untuk cross-fade */
.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 800ms ease;
  opacity: 0;
  z-index: 0;
}

.hero-bg.is-active{
  opacity: 1;
}

/* overlay yang aman */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

/* konten selalu di atas */
.hero-inner, .hero-content{
  position: relative;
  z-index: 2;
}
.hero{ position: relative; overflow: hidden; }

.hero-bg-wrap{ position: absolute; inset: 0; z-index: 0; }

.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-bg.is-active{ opacity: 1; }

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.hero-inner{ position: relative; z-index: 2; }
.hero{ border-bottom: 15px solid #A4C639; }

/* ====== LAYANAN DETAIL (FINAL, RAPiH) ====== */
/* kasih jarak bawah biar gak nempel footer */
.layanan-detail{
  padding-bottom: 90px;  /* bisa 70-120 sesuai selera */
}

.layanan-detail-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}

.layanan-detail-img{
  width: 420px;
  height: 420px;
  border-radius: 28px;
  object-fit: cover;
  display: block;
}
.layanan-detail-placeholder{
  background: #d9d9d9;
}

.layanan-detail-title{
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.layanan-detail-subtitle{
  margin: 18px 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.layanan-bullets{
  margin: 0;
  padding-left: 18px;
  line-height: 1.75;
}

.layanan-detail-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

/* responsive */
@media (max-width: 900px){
  .layanan-detail-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .layanan-detail-img{
    width: 100%;
    height: 320px;
  }

}


/* ===== ld-back overlay (scoped) ===== */
/* scoped ke halaman layanan_detail saja, tidak ganggu layanan.php */
.layanan-detail .layanan-detail-left{
  position: relative;
}

.layanan-detail .ld-back{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;

  width: 46px;
  height: 46px;
  font-size: 34px;

  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,0.35);
  opacity: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 900px){
  .layanan-detail .ld-back{
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    font-size: 32px;
  }
}


/* ---------- Responsive improvements (Landing + Kontak) ---------- */
@media (max-width: 700px){
  :root{ --side-pad:18px; }
  .hero{ min-height: 520px; }
  .hero-title{ font-size:36px; line-height:1.1; }
  .hero-subtitle{ font-size:16px; }
  .hero-arrow{ width:44px; height:44px; }
  .split{ gap:22px; }
  .split-right{ padding-top: 18px; }
  .img-real.img-450, .img-ph.img-450{ height: 320px; }
  .gallery-grid{ gap: 14px; }
  .img-real.img-280, .img-ph.img-280{ width: 100%; max-width: 280px; }
}
@media (max-width: 480px){
  .hero-title{ font-size:30px; }
  .btn{ width:100%; text-align:center; }
}
.back-btn{
  position:absolute;
  top:16px; left:16px;
  z-index:5;

  width:44px; height:44px;
  display:grid; place-items:center;

  border-radius:999px;
  background:#1f1f1f;
  border:1px solid rgba(163,203,56,.55);

  color:#fff;
  font-size:28px;
  line-height:1;
  text-decoration:none;

  transition: transform .15s ease, background .15s ease;
}
.back-btn:hover{ transform: translateY(-2px); background:#252525; }
.back-btn:active{ transform: translateY(0); }
