/* Landing page service picker and cards */
#layanan {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

#layanan::before {
  position: absolute;
  z-index: -1;
  inset: 12% -3vw;
  border: 1px solid rgba(148, 163, 184, .09);
  border-radius: 2rem;
  background: radial-gradient(ellipse at 12% 0%, rgba(34, 211, 238, .07), transparent 45%), rgba(8, 13, 25, .32);
  content: "";
  pointer-events: none;
}

#layanan .service-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

#layanan .service-heading h2 {
  margin: 0;
  letter-spacing: -.045em;
}

#layanan .service-pricelist-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .35rem;
  padding: .6rem 0;
  color: #67e8f9;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

#layanan .service-pricelist-link:hover { color: #c4b5fd; }

#tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: .65rem;
  margin: 1.6rem 0 1.25rem;
  padding: .25rem .1rem .75rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 232, 249, .35) transparent;
}

.service-tab {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #aab7c9;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.service-tab:hover { border-color: rgba(103, 232, 249, .45); color: #f8fafc; }
.service-tab.on {
  border-color: rgba(103, 232, 249, .62);
  background: linear-gradient(110deg, rgba(34, 211, 238, .17), rgba(139, 92, 246, .16));
  box-shadow: 0 0 24px rgba(34, 211, 238, .08), inset 0 0 0 1px rgba(255, 255, 255, .035);
  color: #f8fafc;
}

#lst { align-items: stretch; }

.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(17, 26, 44, .94), rgba(8, 13, 24, .96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .17);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 1.35rem;
  width: 3.2rem;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  content: "";
  opacity: .8;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, .34);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .27), 0 0 24px rgba(34, 211, 238, .055);
}

.service-card-badge {
  margin: .05rem 0 .7rem;
  padding: .28rem .58rem;
  border: 1px solid rgba(103, 232, 249, .2);
  border-radius: 999px;
  background: rgba(34, 211, 238, .09);
  color: #67e8f9;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-card-badge.hemat { border-color: rgba(52, 211, 153, .23); background: rgba(52, 211, 153, .09); color: #6ee7b7; }
.service-card-badge.populer { border-color: rgba(167, 139, 250, .25); background: rgba(139, 92, 246, .12); color: #c4b5fd; }

.service-card h3 {
  margin: .1rem 0 .45rem;
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-card p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: .84rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.service-card-price {
  margin-top: auto;
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.service-card-price .unit { color: #94a3b8; font-size: .78rem; font-weight: 500; letter-spacing: 0; }

.service-card-meta {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .65rem 0 1rem;
  color: #94a3b8;
  font-size: .76rem;
}

.service-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: .25rem .55rem;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 999px;
  background: rgba(2, 6, 23, .38);
}

.service-card-meta .express { border-color: rgba(251, 191, 36, .2); color: #fcd34d; }

.btn-order {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid rgba(103, 232, 249, .38);
  border-radius: .75rem;
  background: linear-gradient(110deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .17));
  color: #ecfeff;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-order::after { content: "→"; font-size: 1.05rem; }
.btn-order:hover { transform: translateY(-1px); background: linear-gradient(110deg, rgba(34, 211, 238, .28), rgba(139, 92, 246, .28)); box-shadow: 0 8px 22px rgba(34, 211, 238, .1); }

@media (min-width: 640px) {
  .service-card { padding: 1.5rem; }
}

@media (max-width: 520px) {
  #layanan { padding-top: 2.75rem; padding-bottom: 3rem; }
  #layanan::before { inset: 8% -1.25rem; border-radius: 1.35rem; }
  #layanan .service-heading { align-items: center; gap: .65rem; }
  #layanan .service-heading h2 { font-size: 1.4rem; line-height: 1.2; }
  #layanan .service-pricelist-link { padding: .35rem 0; font-size: .75rem; white-space: nowrap; }
  #tabs { gap: .5rem; margin: 1.2rem 0 1rem; }
  .service-tab { min-height: 42px; padding: .58rem .85rem; font-size: .8rem; }
  #lst { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .service-card { min-height: auto; padding: 1rem; border-radius: 1rem; }
  .service-card::before { left: 1rem; }
  .service-card-badge { margin-bottom: .55rem; }
  .service-card h3 { margin-top: .05rem; font-size: 1rem; }
  .service-card p { margin-bottom: .75rem; font-size: .82rem; }
  .service-card-price { font-size: 1.25rem; }
  .service-card-meta { margin: .55rem 0 .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .service-card, .service-tab, .btn-order { transition: none; }
}
