/* WashNgo Champ cards and animated customer review rows. */
.ref-quality,
.ref-reviews {
  --ref-mint: #eef8f3;
  --ref-line: #b8dfd0;
  --ref-teal: #00685f;
  --ref-ink: #17352f;
  font-family: Inter, sans-serif;
}
.ref-quality {
  padding: 88px 0 66px;
  background: #fff;
}
.ref-quality h2,
.ref-reviews h2 {
  text-align: center;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: var(--ref-ink);
}
.ref-quality h2 span,
.ref-reviews h2 span {
  color: var(--ref-teal);
}
.ref-mobile-break {
  display: none;
}

.ref-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.champ-card {
  min-width: 0;
  min-height: 456px;
  padding: 28px;
  border: 1px solid #dce8e1;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  color: var(--ref-ink);
}
.champ-card h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: inherit;
}
.champ-card .champ-card-intro {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #52665e;
}
.champ-card--ratings {
  background: #17352f;
  color: #fff;
  border-color: #17352f;
}
.champ-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  line-height: 1;
}
.champ-score strong {
  font-size: clamp(4rem, 5.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
}
.champ-score > span {
  color: #b1c9bd;
  font-size: 1.25rem;
}
.champ-stars {
  margin-top: 12px;
  color: #e0f58a;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.17em;
}
.champ-card--ratings .champ-card-intro {
  color: #c9dbd1;
}
.champ-rating-list {
  margin-top: auto;
  padding-top: 25px;
}
.champ-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 15px;
  border-top: 1px solid #ffffff24;
}
.champ-rating-row:last-child {
  padding-bottom: 0;
}
.champ-avatar {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d3e7db;
  background: #dceee4 url("assets/champ-banner.webp") no-repeat;
  background-size: 347px auto;
}
.champ-avatar--1 {
  background-position: 59% 35%;
}
.champ-avatar--2 {
  background-position: 74% 41%;
}
.champ-rating-row > div {
  min-width: 0;
}
.champ-rating-row strong,
.champ-rating-row > div > span {
  display: block;
}
.champ-rating-row strong {
  font-size: 0.9rem;
  font-weight: 600;
}
.champ-rating-row > div > span {
  margin-top: 3px;
  color: #b1c9bd;
  font-size: 0.68rem;
}
.champ-rating-row b {
  margin-left: auto;
  color: #e0f58a;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.champ-card--training {
  background: #fff;
}
.champ-training-photo {
  position: relative;
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
}
.champ-training-photo img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  object-position: 75% center;
}
.champ-training-photo > span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #e0f58a;
  color: #17352f;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.champ-training-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.champ-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0f2eb;
  color: #00685f;
  font-size: 1rem;
  font-weight: 600;
}
.champ-training-status strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.champ-skill-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.champ-skill-list > span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f1f6f3;
  color: #52665e;
  font-size: 0.64rem;
  line-height: 1.4;
}
.champ-card--identity {
  background: #e8f4ee;
  border-color: #e8f4ee;
}
.champ-id-pass {
  margin-top: auto;
  padding: 22px 20px 0;
  border: 1px solid #d4e3db;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px #17352f08;
}
.champ-id-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.champ-id-heading strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  color: #00685f;
}
.champ-id-heading > span {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: #748b82;
}
.champ-id-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 24px;
}
.champ-id-profile .champ-avatar {
  width: 64px;
  height: 64px;
  background-size: 505px auto;
  border-radius: 16px;
}
.champ-id-profile strong,
.champ-id-profile > div > span {
  display: block;
}
.champ-id-profile strong {
  font-size: 1.05rem;
  font-weight: 600;
}
.champ-id-profile > div > span {
  margin-top: 3px;
  font-size: 0.7rem;
  color: #748b82;
}
.champ-checklist {
  list-style: none;
  padding: 18px 0;
  border-top: 1px dashed #c6d8ce;
  display: grid;
  gap: 12px;
}
.champ-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
}
.champ-checklist .champ-check {
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
}
.champ-id-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 -20px;
  padding: 13px 12px;
  border-radius: 0 0 17px 17px;
  background: #17352f;
  color: #e0f58a;
  font-size: 0.65rem;
}
.champ-id-footer > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ref-reviews {
  --ref-mint: #eef8f3;
  --ref-line: #b8dfd0;
  --ref-teal: #00685f;
  --ref-ink: #17352f;
  font-family: Inter, sans-serif;
}
.ref-quality {
  padding: 88px 0 66px;
  background: #fff;
}
.ref-quality h2,
.ref-reviews h2 {
  text-align: center;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: var(--ref-ink);
}
.ref-quality h2 span,
.ref-reviews h2 span {
  color: var(--ref-teal);
}
.ref-mobile-break {
  display: none;
}

.ref-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 62px;
}
.ref-quality-card {
  position: relative;
  min-width: 0;
  height: 346px;
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(140deg, #f2faf5 12%, #e0f2eb 100%);
  isolation: isolate;
}
.ref-quality-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 23%;
  z-index: -1;
  opacity: 0.46;
  background-image: radial-gradient(#99cbb7 1.7px, transparent 1.8px);
  background-size: 11px 11px;
  mask-image: linear-gradient(90deg, transparent, #000 70%, transparent);
}
.ref-quality-card h3 {
  position: relative;
  z-index: 2;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
  color: #073f39;
}

.ref-profile {
  position: absolute;
  border: 5px solid #bfdfd0;
  border-radius: 33px 33px 0 0;
  padding: 22px 20px;
  background: #fff;
  box-shadow: 0 12px 30px #17352f08;
  min-height: 168px;
}
.ref-profile--back {
  left: 33%;
  top: 114px;
  width: 88%;
  background: #f8fcfa;
}
.ref-profile--front {
  left: 22px;
  top: 207px;
  width: 87%;
}
.ref-profile-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}
.ref-profile-heading strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #263c34;
}
.ref-champ-avatar {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 2px solid #c6e9d6;
  border-radius: 50%;
  background-image: url("assets/champ-banner.webp");
  background-size: 410px auto;
  background-repeat: no-repeat;
  background-color: #dceee4;
}
.ref-champ-avatar--1 {
  background-position: 59% 35%;
}
.ref-champ-avatar--2 {
  background-position: 74% 41%;
}
.ref-champ-avatar--3 {
  background-position: 88% 34%;
}
.ref-champ-rating {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 20px;
  color: #486c5a;
  background: #e8f6ee;
  font-size: 0.59rem;
  line-height: 1.2;
}
.ref-champ-rating svg {
  width: 12px;
  height: 12px;
}
.ref-profile-line {
  display: block;
  width: 58%;
  height: 13px;
  margin-top: 16px;
  border-radius: 999px;
  background: #f1f5f2;
}
.ref-profile-line--long {
  width: 92%;
  margin-top: 9px;
}
.ref-training-panel {
  position: absolute;
  top: 114px;
  left: 22px;
  right: 22px;
  min-height: 262px;
  padding: 22px 16px 24px;
  border: 5px solid #bfdfd0;
  border-radius: 38px 38px 0 0;
  text-align: center;
  background: #fff;
}
.ref-training-medal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 13px;
  color: #fff;
  background: var(--ref-teal);
  clip-path: polygon(
    50% 0,
    61% 5%,
    73% 4%,
    81% 14%,
    93% 18%,
    95% 31%,
    100% 41%,
    96% 53%,
    99% 66%,
    90% 75%,
    86% 87%,
    73% 90%,
    63% 99%,
    50% 96%,
    37% 100%,
    27% 91%,
    14% 88%,
    10% 75%,
    1% 67%,
    4% 54%,
    0 42%,
    5% 31%,
    7% 18%,
    19% 14%,
    27% 4%,
    39% 5%
  );
}
.ref-training-medal > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff5c;
  border-radius: 50%;
  background: #ffffff12;
}
.ref-training-medal svg {
  width: 28px;
  height: 28px;
}
.ref-training-panel > strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: #263c34;
  letter-spacing: -0.035em;
}
.ref-training-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.ref-training-thumbs img {
  width: 100%;
  height: 55px;
  border: 2px solid #359786;
  border-radius: 14px;
  object-fit: cover;
}
.ref-training-thumbs img:first-child {
  object-position: 82% center;
}
.ref-training-thumbs img:last-child {
  object-position: 90% center;
}
.ref-verification-panel {
  position: absolute;
  top: 114px;
  left: 22px;
  right: 22px;
  height: 265px;
  border: 5px solid #c4e4d4;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(90deg, #fff 0%, #fff 49%, #e4f5eb 49%);
}
.ref-profile-connections {
  position: absolute;
  inset: 5% 0 0;
  width: 100%;
  height: 90%;
  stroke: #aecbbd;
  stroke-width: 2;
}
.ref-identity-list {
  position: absolute;
  top: 25px;
  left: 21px;
  display: grid;
  gap: 25px;
}
.ref-identity-list .ref-champ-avatar {
  width: 36px;
  height: 36px;
  border-color: #e4ebe6;
  border-radius: 11px;
  background-size: 295px auto;
  filter: grayscale(1);
}
.ref-identity-result {
  position: absolute;
  top: 93px;
  right: 8px;
}
.ref-identity-result .ref-champ-avatar {
  border: 3px solid #00685f;
}
.ref-verification-shield {
  position: absolute;
  top: 57px;
  left: 27%;
  width: 46%;
  aspect-ratio: 160/180;
  color: #fff;
  filter: drop-shadow(0 8px 12px #00685f1f);
}
.ref-shield-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #0a8c7b;
  stroke: #9dd8be;
  stroke-width: 6;
}
.ref-verification-shield > div {
  position: absolute;
  inset: 17% 0 0;
  text-align: center;
}
.ref-verification-shield > div > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}
.ref-verification-shield strong {
  display: block;
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.ref-verification-shield span {
  display: block;
  margin-top: 5px;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #dcf3e9;
}

.ref-reviews {
  padding: 82px 0 70px;
  overflow: hidden;
  background: #f0f8f3;
}
.ref-reviews-heading {
  margin-bottom: 46px;
  text-align: center;
}
.ref-review-motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid #c6ded2;
  border-radius: 99px;
  color: #00685f;
  background: #ffffffa8;
  font-size: 0.75rem;
  font-weight: 600;
}
.ref-review-rows {
  display: grid;
  gap: 30px;
}
.ref-review-window {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9d2c4 transparent;
  padding: 4px 0 8px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}
.ref-review-track,
.ref-review-set {
  display: flex;
  gap: 26px;
  width: max-content;
}
.ref-review-set--duplicate {
  display: none;
}
.ref-review-window--2 .ref-review-track {
  margin-left: 0;
}
.ref-review-card {
  flex: 0 0 auto;
  width: clamp(305px, 28vw, 430px);
  min-height: 276px;
  padding: 26px 28px;
  border: 1px solid #e1ebe5;
  border-radius: 24px;
  background: #fff;
}
.ref-review-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.ref-review-stars {
  display: inline-flex;
  gap: 3px;
  color: #00685f;
}
.ref-review-stars svg {
  width: 19px;
  height: 19px;
}
.ref-review-rating > span:last-child {
  color: #63786c;
  font-size: 0.6rem;
  line-height: 1.4;
}

.ref-review-card > p {
  margin-top: 18px;
  min-height: 67px;
  color: #273c33;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.ref-review-author {
  margin-top: 24px;
}
.ref-review-author strong,
.ref-review-author span {
  display: block;
}
.ref-review-author strong {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: #334b3e;
}
.ref-review-author span {
  margin-top: 5px;
  color: #8b9a90;
  font-size: 0.7rem;
  line-height: 1.4;
}
@keyframes ref-review-travel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 13px));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ref-motion-enabled .ref-review-window {
    overflow-x: hidden;
  }
  .ref-motion-enabled .ref-review-set--duplicate {
    display: flex;
  }
  .ref-motion-enabled .ref-review-track {
    animation: ref-review-travel 68s linear infinite;
    animation-play-state: paused;
  }
  .ref-motion-enabled .ref-review-window--1 .ref-review-track {
    animation-delay: -11s;
  }
  .ref-motion-enabled .ref-review-window--2 .ref-review-track {
    margin-left: 0;
    animation-direction: reverse;
    animation-delay: -25s;
  }
  .ref-motion-enabled.ref-is-visible .ref-review-track {
    animation-play-state: running;
  }
  /* Focus on the Pause control must not override an explicit Resume. */
  .ref-motion-enabled.ref-motion-paused .ref-review-track,
  .ref-motion-enabled:hover .ref-review-track {
    animation-play-state: paused;
  }
}
@media (max-width: 1100px) {
  .ref-quality-grid {
    gap: 18px;
  }
  .champ-card {
    padding: 24px 20px;
  }
  .champ-id-pass {
    padding-inline: 16px;
  }
  .champ-id-footer {
    margin-inline: -16px;
  }
}
@media (max-width: 1000px) {
  .ref-quality {
    padding: 64px 0 48px;
  }
  .ref-quality-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 38px auto 0;
    gap: 20px;
  }
  .champ-card {
    min-height: 0;
    padding: 28px;
  }
  .champ-card h3 {
    font-size: 1.5rem;
  }
  .champ-score strong {
    font-size: 5rem;
  }
  .champ-rating-list {
    margin-top: 0;
  }
  .champ-training-photo img {
    height: 200px;
  }
  .champ-id-pass {
    margin-top: 24px;
  }
}
@media (max-width: 850px) {
  .ref-reviews {
    padding: 62px 0 50px;
  }
  .ref-review-card {
    width: 330px;
  }
  .ref-review-rows {
    gap: 20px;
  }
  .ref-review-track,
  .ref-review-set {
    gap: 20px;
  }
  @keyframes ref-review-travel {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-50% - 10px));
    }
  }
}
@media (max-width: 480px) {
  .ref-mobile-break {
    display: block;
  }
  .ref-quality h2,
  .ref-reviews h2 {
    font-size: 2rem;
  }
  .champ-card {
    padding: 24px;
    border-radius: 24px;
  }
  .champ-card h3 {
    font-size: 1.35rem;
  }
  .champ-card .champ-card-intro {
    font-size: 0.8rem;
  }
  .champ-training-photo img {
    height: 180px;
  }
  .champ-id-pass {
    padding-inline: 16px;
  }
  .champ-id-footer {
    margin-inline: -16px;
  }
  .champ-id-profile {
    gap: 12px;
  }
  .champ-id-profile .champ-avatar {
    width: 56px;
    height: 56px;
    background-size: 442px auto;
  }
  .ref-review-card {
    width: 300px;
    min-height: 282px;
    padding: 24px;
    border-radius: 22px;
  }
  .ref-review-rating {
    gap: 8px;
  }
  .ref-review-stars {
    gap: 2px;
  }
  .ref-review-stars svg {
    width: 18px;
    height: 18px;
  }
  .ref-review-card > p {
    font-size: 1rem;
  }
  .ref-review-window {
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 3%,
      #000 97%,
      transparent
    );
  }
}
