/* ------------------------------------------------------------------
   Homepage "Garage Floor Transformation" section (Oshawa job):
   the before and after photos side by side with the Before & After
   caption, then the staged room as the closing showcase image.
   The staged room's badge/caption and the project card keep their
   .transformation__feature / .transformation__detail rules in
   sections.css; this file only adds the pair, the caption and the
   showcase sizing. Linked from index.html only.
   ------------------------------------------------------------------ */
.transformation__compare {
  max-width: 60rem;
  margin: 0 auto 3.5rem;
}

.transformation__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.transformation__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

/* Both photos are portrait 3:4 as displayed, so the native ratio shows
   the same full room (doorway, walls, floor) in each. */
.transformation__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Fixed dark pill with light gold text rather than theme tokens, so the
   label reads on the pale before photo and the grey flake floor in
   either theme. */
.transformation__shot-label {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  z-index: 1;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #e4c976;
  background: rgba(12, 12, 10, 0.84);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.transformation__caption {
  max-width: 44rem;
  margin: 2.25rem auto 0;
  text-align: center;
}

.transformation__caption-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-gold);
}

.transformation__caption-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--letter-tight);
  color: var(--text-primary);
}

.transformation__caption-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* The staged room closes the section at the same width as the pair. The
   4:3 crop sits high enough to keep the lit media wall and the whole sofa,
   with the floor running along the side and front. */
.transformation__feature--showcase {
  max-width: 60rem;
}

.transformation__feature--showcase img {
  object-position: center 30%;
}

@media (max-width: 600px) {
  .transformation__compare { margin-bottom: 2.5rem; }
  .transformation__pair { gap: 0.625rem; }

  .transformation__shot-label {
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    padding: 0.3rem 0.6rem;
    letter-spacing: 0.1em;
  }

  .transformation__caption { margin-top: 1.5rem; }
  .transformation__caption-text { font-size: 0.9375rem; }

  /* Taller crop on phones so the showcase keeps the floor and the room. */
  .transformation__feature--showcase img { aspect-ratio: 4 / 5; }
}
