/* ============================================================
   Sticky Sidebar — keeps left sidebar pinned while scrolling
   long content pages (service detail pages)
   ============================================================ */
.sidebar-sticky-col {
  align-self: flex-start;
}

.sidebar-sticky-col .service-sidebar {
  position: sticky;
  top: 100px; /* clears the sticky header */
}

/* ============================================================
   Before & After Comparison Slider
   Place photos in: images/before-after/
   Naming: vinyl-1-before.jpg / vinyl-1-after.jpg  (pairs 1–3)
           pressure-1-before.jpg / pressure-1-after.jpg
           steam-1-before.jpg   / steam-1-after.jpg
           mould-1-before.jpg   / mould-1-after.jpg
   ============================================================ */

.ba-section {
  padding-top: 10px;
}

.ba-section > h3 {
  margin-bottom: 20px;
}

.ba-caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* Wrapper — maintains 4:3 aspect ratio */
.ba-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  overflow: hidden;
  border-radius: 8px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Both images fill the container */
.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* After image: clipped to show only the RIGHT portion (from handle to right edge) */
.ba-after {
  clip-path: inset(0 0 0 50%);
}

/* Invisible range input — covers full area, handles all drag/touch */
.ba-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
}

/* Dividing line */
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.92);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* Circular drag button on the line */
.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #333;
  font-weight: 700;
  line-height: 1;
}

/* Before / After labels */
.ba-label {
  position: absolute;
  top: 12px;
  padding: 3px 10px;
  background: rgba(0,0,0,0.52);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.ba-label-before { left: 12px; }
.ba-label-after  { right: 12px; }

/* Responsive tweaks */
@media (max-width: 576px) {
  .ba-comparison {
    min-height: 160px;
  }
  .ba-handle-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}
