/* ==========================================================================
   sections/proof.css — before and after, the countable facts, and a sliding
   strip of shop photography
   ========================================================================== */

.proof {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--paper-edge);
}

/* --- Before and after ---------------------------------------------------
   One pair at a time, filling the layout. Nothing runs off the screen here,
   so the arrows sit on the outer edges of the frames themselves. */
.ba {
  position: relative;
}

.ba__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ba__viewport::-webkit-scrollbar { display: none; }

/* The two frames butt together into one panel: no gap, and no rounded
   corners on the edges where they meet. */
.ba__pair {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.ba__frame {
  aspect-ratio: 4 / 3;
}

.ba__frame:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-width: 0;
}

.ba__frame:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Arrows stay out of the way until you're over the pair */
.ba__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 14px 26px -16px rgba(28, 27, 25, 0.55);
}

.ba:hover .ba__btn,
.ba:focus-within .ba__btn {
  visibility: visible;
  opacity: 1;
}

/* Lifts on hover like the reviews arrows, staying centred on the panel */
.ba .ba__btn:hover:not(:disabled) { transform: translateY(calc(-50% - 2px)); }

.ba .ba__btn--prev { left: var(--sp-3); }
.ba .ba__btn--next { right: var(--sp-3); }

/* Rule between the pair and the numbers below it */
.proof__rule {
  height: 0;
  margin: var(--sp-5) 0 0;
  border: 0;
  border-top: 1px solid var(--paper-edge);
}

.ba__note {
  margin-top: var(--sp-3);
  max-width: 62ch;
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* --- The numbers, counting up as they arrive ---------------------------- */
.proof__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: var(--grid-gap) 0 0;
  padding: 0;
  list-style: none;
}

.proof__stat {
  padding-top: var(--sp-2);
}

.proof__stat strong {
  display: block;
  margin-top: -4px;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}

.proof__stat span {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* --- Around the shop: full-width photo strip ---------------------------- */
.gallery {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.gallery__track {
  display: flex;
  gap: calc(var(--grid-gap) / 2);
  overflow-x: auto;
  padding-inline: var(--gutter);
  padding-block: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  position: relative;
  flex: 0 0 clamp(240px, 24vw, 330px);
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper-tint);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-5) var(--sp-3) var(--sp-3);
  font-family: var(--font-text);
  font-size: var(--step--1);
  line-height: 1.4;
  text-align: left;
  color: var(--white);
  background: linear-gradient(to top, rgba(18, 17, 16, 0.85), rgba(18, 17, 16, 0));
}

@media (max-width: 860px) {
  .proof__stats { grid-template-columns: 1fr; gap: var(--sp-4); }
}

@media (max-width: 620px) {
  /* Stacked on a phone, so the join moves from side-by-side to top-to-bottom */
  .ba__pair { grid-template-columns: 1fr; }
  .ba__frame { aspect-ratio: 16 / 11; }

  .ba__frame:first-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-left-radius: 0;
    border-right-width: 1.5px;
    border-bottom-width: 0;
  }

  .ba__frame:last-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--radius-lg);
  }
  .ba .ba__btn--prev { left: var(--sp-2); }
  .ba .ba__btn--next { right: var(--sp-2); }
  .gallery__item { flex-basis: min(78vw, 320px); }
}

/* Filled before/after frame (real repair photos, round 2) */
.ba__frame--filled {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-lg);
  background: var(--paper-tint);
}

.ba__frame--filled img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ba__tag {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(28, 27, 25, 0.74);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
