/* ==========================================================================
   Nu Mech — Services page-specific styles
   (loaded AFTER style.css; only overrides/additions for this page)
   The service items use the shared .split-band component in style.css.
   ========================================================================== */

/* ==========================================================================
   DESIGN · BUILD · INSTALL band (light grey, centred)
   ========================================================================== */
.dbi-band {
  background: var(--light);   /* #eaeaea */
  color: var(--ink);
  text-align: center;
  padding-block: 72px;
}
.dbi-band .container { max-width: 760px; }
/* rotator reused from style.css; centre it, blue on the grey band */
.dbi-rotator {
  height: 76px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: center;
}
.dbi-rotator .rot {
  left: 50%;
  transform: translateX(-50%);
  color: var(--blue);
}
.dbi-band p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  margin: 0 auto 14px;
}
.dbi-band .btn { margin-top: 14px; }

/* ==========================================================================
   Before / After comparison sliders (blue band)
   ========================================================================== */
.ba-section {
  background: var(--blue);
  padding-block: 72px;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.ba-slider {
  --pos: 50%;
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 0;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;          /* let pointer drag work without page scroll */
}
.ba-slider .ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* the "before" image overlay, clipped to reveal everything left of the handle */
.ba-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* drag handle */
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(9, 81, 145, .35);
}
.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba-handle span::before { left: 8px;  border-right: 7px solid #fff; transform: translateY(-50%); }
.ba-handle span::after  { right: 8px; border-left: 7px solid #fff;  transform: translateY(-50%); }
/* before / after labels */
.ba-tag {
  position: absolute;
  bottom: 16px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 20px;
  pointer-events: none;
}
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .dbi-rotator, .dbi-rotator .rot { font-size: 52px; }
  .dbi-rotator { height: 58px; }
  .ba-grid { grid-template-columns: 1fr; gap: 28px; }
  .ba-slider { height: 320px; }
}
