/* v3 reviews. Figma: Reviews 10322:6346 (1440), mobile 11307:11305 (430). */
.v3-rev {
  --rv-dash: repeating-linear-gradient(180deg, var(--v3-gray-50) 0 3px, transparent 3px 5px);
  position: relative;
  background: var(--v3-bg-gray);
  overflow-x: clip;
  isolation: isolate;
}
.v3-rev::before,
.v3-rev::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.v3-rev::before {                /* dashed guide lines */
  max-width: var(--v3-container-max);
  margin-inline: auto;
  background:
    var(--rv-dash) 3.47% 0 / 1px 100% no-repeat,
    var(--rv-dash) 26.94% 0 / 1px 100% no-repeat,
    var(--rv-dash) 50% 0 / 1px 100% no-repeat,
    var(--rv-dash) 73.06% 0 / 1px 100% no-repeat,
    var(--rv-dash) 96.53% 0 / 1px 100% no-repeat;
}
.v3-rev::after {
  opacity: 0.04;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 1024px;
}

/* ---- layout: label | heading, then drivers | carousel ---- */
.v3-rev__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 80px;
  align-items: start;
}
.v3-rev__label {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 0;
  font-size: var(--v3-fs-caption);
  font-weight: 700;
  line-height: var(--v3-lh-tight);
  text-transform: uppercase;
}
.v3-rev__label::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--v3-primary); }
.v3-rev__title { grid-column: 2; margin: 0; max-width: 652px; color: var(--v3-dark); }
.v3-rev__accent { display: block; color: var(--v3-gray-200); }

.v3-rev__drivers { grid-column: 1; display: flex; flex-direction: column; gap: 22px; max-width: 224px; }
.v3-rev__carousel { grid-column: 2; min-width: 0; }

/* ---- drivers: overlapping avatars + badge ---- */
.v3-rev__avatars { display: flex; margin: 0; padding: 0; list-style: none; }
.v3-rev__avatars li { flex: none; width: 48px; height: 48px; margin-right: -6px; }
.v3-rev__avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.v3-rev__badge {
  display: grid;
  place-items: center;
  margin-right: 0 !important;
  border-radius: 50%;
  background: var(--v3-dark);
  color: var(--v3-white);
  font-size: 16px;
  font-weight: 700;
  line-height: var(--v3-lh-body-m);
}
.v3-rev__drivers-text { margin: 0; max-width: 210px; font-size: 16px; font-weight: 600; line-height: var(--v3-lh-body-m); color: var(--v3-gray-200); }

/* ---- carousel (css scroll-snap) ---- */
.v3-rev__track {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.v3-rev__track::-webkit-scrollbar { display: none; }
.v3-rev__track:focus-visible { outline: 2px solid var(--v3-primary); outline-offset: 4px; }
.v3-rev__item { flex: none; width: 320px; display: flex; flex-direction: column; gap: 28px; scroll-snap-align: start; }

.v3-rev__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 400px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--v3-radius-md);
  background: var(--v3-dark);
  color: var(--v3-white);
}
.v3-rev__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3-rev__card::after {           /* bottom shade behind the caption */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 141px;
  background: var(--v3-gradient-overlay-dark);
  transform: scaleY(-1);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.v3-rev__card > iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: var(--v3-dark); }
.v3-rev__info { position: relative; z-index: 1; width: 180px; display: flex; flex-direction: column; gap: 4px; }
.v3-rev__name { margin: 0; font-size: var(--v3-fs-h3); font-weight: 700; line-height: var(--v3-lh-tight); }
.v3-rev__note { margin: 0; width: 169px; font-size: 12px; line-height: var(--v3-lh-tight); color: var(--v3-gray-50); }
.v3-rev__note:empty { display: none; }
.v3-rev__quote { margin: 0; width: 300px; max-width: 100%; font-size: 16px; line-height: var(--v3-lh-body-m); color: var(--v3-gray-200); }

.v3-rev__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
button.v3-rev__play { cursor: pointer; }
button.v3-rev__play:hover { transform: translate(-50%, -50%) scale(1.08); }
button.v3-rev__play:focus-visible { outline: 2px solid var(--v3-primary); outline-offset: 4px; }
.v3-rev__play img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transition: opacity 0.2s ease; }
.v3-rev__play-light { opacity: 0; }
.v3-rev__item:first-child .v3-rev__play-light,   /* the first card is shown in its active state in the Figma desktop frame */
.v3-rev__play:hover .v3-rev__play-light,
.v3-rev__play:focus-visible .v3-rev__play-light { opacity: 1; }
.v3-rev__item:first-child .v3-rev__play-dark,
.v3-rev__play:hover .v3-rev__play-dark,
.v3-rev__play:focus-visible .v3-rev__play-dark { opacity: 0; }

/* ---- nav: shown by js only when the cards do not fit ---- */
.v3-rev__nav { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 28px; }
.v3-rev__nav[hidden] { display: none; }
.v3-rev__counter { margin: 0; font-size: 16px; line-height: var(--v3-lh-body-m); color: var(--v3-gray-200); }
.v3-rev__buttons { display: flex; gap: 12px; }
.v3-rev__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--v3-gray-50);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.v3-rev__btn img { display: block; width: 30px; height: 30px; }
.v3-rev__btn--prev img { transform: rotate(90deg); }
.v3-rev__btn--next img { transform: rotate(-90deg); }
.v3-rev__btn:hover:not([aria-disabled="true"]) { background: var(--v3-primary-light); }
.v3-rev__btn:focus-visible { outline: 2px solid var(--v3-primary); outline-offset: 3px; }
.v3-rev__btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }

/* ---- <=1024: stacked, the carousel bleeds to the right edge ---- */
@media (max-width: 1024px) {
  .v3-rev::before {
    max-width: none;
    background:
      var(--rv-dash) 16px 0 / 1px 100% no-repeat,
      var(--rv-dash) calc(100% - 16px) 0 / 1px 100% no-repeat;
  }
  .v3-rev__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .v3-rev__label { height: 20px; margin-bottom: 12px; }
  .v3-rev__title { max-width: none; margin-bottom: 36px; }
  .v3-rev__accent { display: inline; }
  .v3-rev__drivers { flex-direction: row; align-items: center; gap: 44px; max-width: none; margin-bottom: 44px; }
  .v3-rev__avatars li { width: 43px; height: 43px; margin-right: -5px; }
  .v3-rev__drivers-text { max-width: 179px; font-size: var(--v3-fs-body-s); line-height: var(--v3-lh-body-s); }
  .v3-rev__carousel { margin-right: calc(var(--v3-gutter) * -1); }
  .v3-rev__track { gap: 16px; }
  .v3-rev__nav { margin-top: 32px; padding-right: var(--v3-gutter); }
}
@media (min-width: 1025px) {
  .v3-rev__accent { display: block; }
  /* 3 cards (12px gaps) fit the carousel down to ~1425px viewports; narrower ones scroll with the nav */
  .v3-rev__item { width: clamp(300px, calc((100% - 24px) / 3), 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .v3-rev__play,
  .v3-rev__play img,
  .v3-rev__btn { transition: none; }
}
