/*-- -------------------------- -->
<---       Before & After        -->
<--- -------------------------- -*/

#before-after {
    padding: 5rem 1.25rem;
    background: #0a0a0a;
    text-align: center;
}

.ba-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.ba-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ba-eyebrow {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3B82F6;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ba-eyebrow::before {
    content: '';
    display: block;
    width: 3px;
    height: 1em;
    background: #3B82F6;
    border-radius: 2px;
    flex-shrink: 0;
}

.ba-heading {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.ba-highlight {
    color: #3B82F6;
}

/* Grid */
.ba-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 48rem) {
    .ba-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual slider wrapper */
.ba-item {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    aspect-ratio: 1/1;
}

.ba-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    draggable: false;
}

/* After image sits on top, clipped */
.ba-after {
    clip-path: inset(0 50% 0 0);
    z-index: 1;
}

/* Labels */
.ba-label {
    position: absolute;
    bottom: 1rem;
    z-index: 3;
    font-family: 'Barlow', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: #3B82F6;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    pointer-events: none;
}

.ba-label-before { left: 1rem; }
.ba-label-after  { right: 1rem; }

/* Divider line */
.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Handle */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    background: #3B82F6;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ba-handle svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* CTA */
.ba-cta {
    display: inline-block;
    background: #3B82F6;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.ba-cta:hover { background: #2563eb; }
