/* ============================================================
   HJS — Before/After comparison slider
   ============================================================ */
.hjs-ba {
  font-family: "Inter", system-ui, sans-serif;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 3vw, 2rem);
}
.hjs-ba__head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.hjs-ba__eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #4d8b2e; margin-bottom: .7rem; display: block;
}
.hjs-ba__title {
  font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: #15321a; line-height: 1.1; margin: 0 0 .8rem;
}
.hjs-ba__sub { color: #5a6b54; font-size: 1.05rem; line-height: 1.6; margin: 0; }

.hjs-ba__stack { display: grid; gap: 1.6rem; }

.hjs-cmp {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 26px rgba(20,40,20,.14);
  user-select: none;
  touch-action: pan-y;
  background: #15321a;
}
.hjs-cmp__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* The "after" layer is clipped from the left by --pos */
.hjs-cmp__after-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.hjs-cmp__label {
  position: absolute;
  top: 14px;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; backdrop-filter: blur(4px); z-index: 3;
}
.hjs-cmp__label--before { left: 14px; background: rgba(180,60,40,.9); }
.hjs-cmp__label--after  { right: 14px; background: rgba(76,140,46,.92); }

.hjs-cmp__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  box-shadow: 0 0 8px rgba(0,0,0,.3);
  pointer-events: none;
}
.hjs-cmp__handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  z-index: 5;
  cursor: ew-resize;
  display: grid; place-items: center;
  box-shadow: 0 3px 14px rgba(0,0,0,.3);
}
.hjs-cmp__handle::before,
.hjs-cmp__handle::after {
  content: "";
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.hjs-cmp__handle::before { border-right: 8px solid #4d8b2e; margin-right: 3px; }
.hjs-cmp__handle::after  { border-left: 8px solid #4d8b2e; margin-left: 3px; }

.hjs-cmp__caption {
  text-align: center;
  font-size: 14px;
  color: #5a6b54;
  margin-top: .7rem;
}
@media (max-width: 760px) {
  .hjs-cmp { aspect-ratio: 4 / 3; }
}
