/* ============================================================
   Halaman Layanan (/layanan/)
   CSS khusus halaman ini. Tidak di-import dari atau ke file lain.
   Semua class memakai prefix ly-. Variabel warna dari global.css.
   ============================================================ */

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.ly {
  --ly-grad: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--green));
  --ly-grad-45: linear-gradient(
    45deg,
    var(--blue),
    var(--teal) 55%,
    var(--green)
  );
  --ly-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 1360px;
  margin: 0 auto;
  /* body sudah punya padding-top untuk navbar, jadi cukup tambah sedikit */
  padding: clamp(24px, 4vw, 64px) 0 clamp(90px, 12vw, 170px);
  animation: ly-arrive 0.9s var(--ly-ease) both;
}
@keyframes ly-arrive {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ly h1,
.ly h2,
.ly p,
.ly li {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- hero ---------- */
.ly-title {
  margin: 0;
  font-size: clamp(52px, 12vw, 190px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.085em;
}
.ly-ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.ly-ln > span {
  display: block;
  animation: ly-up 1.1s var(--ly-ease) both;
  animation-delay: var(--d, 0.1s);
}
.ly-title em {
  background: var(--ly-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
@keyframes ly-up {
  from {
    transform: translateY(112%);
  }
  to {
    transform: none;
  }
}
@keyframes ly-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* benang yang kusut lalu lurus, sejajar dengan tema "kami urai" */
.ly-thread {
  display: block;
  width: 100%;
  height: clamp(64px, 9vw, 120px);
  margin-top: clamp(16px, 2.4vw, 32px);
  overflow: visible;
}

.ly-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: end;
  margin-top: clamp(16px, 2.4vw, 32px);
}
.ly-lede {
  grid-column: 1 / span 5;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.4;
  animation: ly-fade 1s 0.75s both;
}
.ly-jump {
  grid-column: 7 / -1;
  display: grid;
  border-top: 1px solid var(--line-strong);
  animation: ly-fade 1s 0.95s both;
}
.ly-jump a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition:
    padding 0.45s var(--ly-ease),
    color 0.3s;
}
.ly-jump a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ly-grad);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ly-ease);
}
.ly-jump a:hover {
  padding-left: 10px;
}
.ly-jump a:hover::after {
  transform: none;
}
.ly-jump i {
  color: var(--muted);
  font-style: normal;
  transition:
    transform 0.45s var(--ly-ease),
    color 0.3s;
}
.ly-jump a:hover i {
  color: var(--teal);
  transform: translateY(4px);
}

/* ---------- bab layanan ---------- */
.ly-ch {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(24px, 3.4vw, 48px);
  margin-top: clamp(110px, 14vw, 220px);
  scroll-margin-top: 110px;
}
.ly-top {
  grid-column: 1 / -1;
}
/* tali pemisah yang lebih kecil, dipakai di tiap bab dan sebelum penutup */
.ly-thread--sm {
  height: clamp(48px, 6vw, 88px);
  margin-top: 0;
}
.ly-thread--end {
  margin-top: clamp(110px, 14vw, 220px);
}
.ly-name {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(46px, 9vw, 144px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.08em;
}
.ly-ph {
  position: relative;
  grid-row: 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  aspect-ratio: 3 / 2;
}
.ly-ph::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ly-grad);
  content: "";
  transform-origin: left;
}
.ly-ph img {
  position: absolute;
  left: 0;
  top: -8%;
  display: block;
  width: 100%;
  height: 116%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transform: translate3d(0, var(--ty, 0px), 0);
  transition: filter 0.8s ease;
  will-change: transform;
}
.ly-ph:hover img {
  filter: none;
}
.ly-info {
  grid-row: 3;
}

/* susunan berbeda tiap bab supaya tidak terasa berulang */
.ly-ch--a .ly-ph {
  grid-column: 1 / span 7;
}
.ly-ch--a .ly-info {
  grid-column: 9 / -1;
  align-self: end;
}

.ly-ch--b .ly-name {
  text-align: right;
}
.ly-ch--b .ly-info {
  grid-column: 1 / span 5;
  align-self: start;
}
.ly-ch--b .ly-ph {
  grid-column: 7 / -1;
  margin-top: clamp(0px, 8vw, 120px);
}

.ly-ch--c .ly-name {
  grid-column: 3 / -1;
}
.ly-ch--c .ly-ph {
  grid-column: 1 / span 4;
  aspect-ratio: 4 / 5;
}
.ly-ch--c .ly-info {
  grid-column: 6 / span 6;
  align-self: center;
}

.ly-sum {
  margin: 0;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.ly-items {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.ly-item {
  border-bottom: 1px solid var(--line);
}
.ly-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
  transition: color 0.3s;
}
.ly-head:hover {
  color: var(--teal);
}
.ly-head i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.ly-head i::before,
.ly-head i::after {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
  transition: transform 0.5s var(--ly-ease);
}
.ly-head i::after {
  transform: rotate(90deg);
}
.ly-item.open .ly-head i::after {
  transform: rotate(0deg);
}
.ly-body {
  display: grid;
  grid-template-rows: 1fr;
}
.ly-body > div {
  min-height: 0;
  overflow: hidden;
}
.ly-body p {
  max-width: 44ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
/* rincian terlipat hanya jika JS aktif; tanpa JS semuanya terbuka */
.ly-js .ly-body {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ly-ease);
}
.ly-js .ly-item.open .ly-body {
  grid-template-rows: 1fr;
}
.ly-js .ly-item:not(.open) .ly-body > div {
  visibility: hidden;
  transition: visibility 0s 0.55s;
}

.ly-fit {
  margin: clamp(20px, 2.6vw, 32px) 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.ly-fit b {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- animasi masuk (hanya jika JS aktif) ---------- */
.ly-js .ly-ch .ly-name .ly-ln > span {
  animation: none;
  transform: translateY(112%);
  transition: transform 1.1s var(--ly-ease) var(--d, 0.1s);
}
.ly-js .ly-ch.in .ly-name .ly-ln > span {
  transform: none;
}
.ly-js .ly-ch .ly-ph {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.25s;
}
.ly-js .ly-ch.in .ly-ph {
  clip-path: inset(0 0 0 0);
}
.ly-js .ly-ch .ly-ph::after {
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.2, 1) 1.1s;
}
.ly-js .ly-ch.in .ly-ph::after {
  transform: none;
}
.ly-js .ly-ch .ly-info {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ly-ease) 0.55s,
    transform 1s var(--ly-ease) 0.55s;
}
.ly-js .ly-ch.in .ly-info {
  opacity: 1;
  transform: none;
}
.ly-js .ly-rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ly-ease),
    transform 1s var(--ly-ease);
}
.ly-js .ly-rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- penutup ---------- */
.ly-close {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(40px, 5vw, 72px);
}
.ly-close p {
  max-width: 15em;
  margin: 0;
  font-size: clamp(30px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.ly-close p span {
  color: var(--muted);
}
.ly-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.ly-btn {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-stretch: 80%;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}
.ly-btn .t {
  padding: 18px 24px;
}
.ly-btn .a {
  display: grid;
  place-items: center;
  width: 58px;
  background: var(--ly-grad-45);
  color: var(--on-brand);
  transition: width 0.5s var(--ly-ease);
}
.ly-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ly-ease);
}
.ly-btn:hover .a {
  width: 90px;
}
.ly-btn:hover svg {
  transform: translateX(8px);
}
.ly-link {
  padding-bottom: 6px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  text-decoration: none;
  transition:
    color 0.3s,
    border-color 0.3s;
}
.ly-link i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.4s var(--ly-ease);
}
.ly-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.ly-link:hover i {
  transform: translateX(6px);
}

/* ---------- mode gelap ---------- */
:root[data-theme="dark"] .ly-ph img {
  filter: grayscale(1) brightness(0.82);
}
:root[data-theme="dark"] .ly-ph:hover img {
  filter: brightness(0.95);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ly-lede,
  .ly-jump {
    grid-column: 1 / -1;
  }
  .ly-ch--a .ly-ph,
  .ly-ch--b .ly-ph,
  .ly-ch--c .ly-ph,
  .ly-ch--a .ly-info,
  .ly-ch--b .ly-info,
  .ly-ch--c .ly-info {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: start;
  }
  .ly-ch--b .ly-ph {
    margin-top: 0;
  }
  .ly-ch--b .ly-name {
    text-align: left;
  }
  .ly-ch--c .ly-name {
    grid-column: 1 / -1;
  }
  .ly-ch--c .ly-ph {
    max-width: 420px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ly,
  .ly-lede,
  .ly-jump,
  .ly-ln > span {
    animation: none !important;
  }
  .ly-js .ly-ch .ly-name .ly-ln > span,
  .ly-js .ly-ch .ly-ph::after {
    transform: none;
  }
  .ly-js .ly-ch .ly-ph {
    clip-path: none;
  }
  .ly-js .ly-ch .ly-info,
  .ly-js .ly-rv {
    opacity: 1;
    transform: none;
  }
}
