/* ==================================================
   "Before & After Transformations" -- a grid of drag-to-compare
   sliders on the Portfolio page, right after the Interactive Bathroom
   Renovations section. Same heading pattern as that section (small
   mono caption, title, subtitle). Each card reuses the shared
   amzy-compare component as-is (compare-slider.css); this file only
   styles the section wrapper/heading/grid around it.
   ================================================== */
/* Reset is scoped to a plain CLASS (not the #before-after-showcase id)
   so it ties in specificity with compare-slider.css's own .amzy-compare
   rules -- compare-slider.css loads AFTER this file (see the <link>
   order in renderBeforeAfterShowcase()), so on that tie its styling
   wins and the slider keeps its own look. An earlier version tried to
   exclude .amzy-compare with :not(), but each :not() adds its
   argument's specificity too, which made the "reset" rule MORE
   specific than every other rule in this file and reverted the whole
   section's styling, not just the slider. */
.ba-scope, .ba-scope * { all: revert; box-sizing: border-box; }

#before-after-showcase {
    --ba-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --ba-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --ba-orange: #ff5e14;
    --ba-ink: #14161a;
    --ba-muted: #6b7280;
    display: block;
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 24px;
    font-family: var(--ba-font);
}

#before-after-showcase .ba-head { text-align: center; margin: 0 auto 48px; max-width: 640px; }

#before-after-showcase .ba-cap {
    display: block;
    margin-bottom: 14px;
    font-family: var(--ba-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ba-ink);
}

#before-after-showcase .ba-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ba-ink);
}

#before-after-showcase .ba-sub {
    margin: 0;
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ba-muted);
}

#before-after-showcase .ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

#before-after-showcase .ba-card { display: block; }

#before-after-showcase .ba-card-title {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ba-ink);
}

/* ---------- Tablet ---------- */
@media (max-width: 992px) {
    #before-after-showcase .ba-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
    #before-after-showcase { padding: 52px 16px; }
    #before-after-showcase .ba-head { margin-bottom: 30px; }
    #before-after-showcase .ba-cap { font-size: 10.5px; letter-spacing: 1px; margin-bottom: 10px; }
    #before-after-showcase .ba-title { font-size: 25px; margin-bottom: 10px; }
    #before-after-showcase .ba-sub { font-size: 13.5px; }
    #before-after-showcase .ba-grid { grid-template-columns: 1fr; gap: 30px; }
    #before-after-showcase .ba-card-title { font-size: 13px; }
}
