/* ==========================================================================
   Yiran homepage feedback module
   Extracted from yiran-home.css for safer long-term maintenance
   ========================================================================== */

/* =========================================================================
   TESTIMONIALS — static proof section
   ========================================================================= */
.yr-proof-sec {
  background:
    linear-gradient(180deg, #f5f7fa 0%, #fff 100%);
  border-top: 1px solid rgba(12, 28, 54, 0.06);
}
.yr-proof-wrap {
  width: min(100%, var(--yr-maxw));
  margin-inline: auto;
}
.yr-proof-head {
  max-width: 700px;
  margin-bottom: clamp(34px, 4vw, 54px);
}
.yr-proof-head .yr-lead {
  max-width: 620px;
}
.yr-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
  gap: clamp(18px, 1.6vw, 26px);
  align-items: stretch;
}
.yr-proof-feature,
.yr-proof-card {
  border: 1px solid rgba(12, 28, 54, 0.1);
  border-radius: 8px;
  background: #fff;
}
.yr-proof-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: clamp(440px, 32vw, 540px);
  overflow: hidden;
}
.yr-proof-feature.no-photo {
  grid-template-columns: 1fr;
}
.yr-proof-photo {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--yr-paper-3);
  overflow: hidden;
}
.yr-proof-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}
.yr-proof-feature-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(44px, 3.8vw, 64px);
}
.yr-proof-mark {
  position: absolute;
  top: 30px;
  right: 36px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  line-height: 1;
  color: color-mix(in srgb, var(--yr-accent) 14%, transparent);
}
.yr-proof-quote {
  position: relative;
  z-index: 1;
  margin: 0;
}
.yr-proof-quote p {
  margin: 0;
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--yr-heading);
}
.yr-proof-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}
.yr-proof-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yr-ink);
  color: #fff;
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.yr-proof-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.yr-proof-name {
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--yr-heading);
}
.yr-proof-role {
  font-size: 13px;
  line-height: 1.45;
  color: var(--yr-muted);
}
.yr-proof-list {
  display: grid;
  gap: 14px;
}
.yr-proof-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}
.yr-proof-card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--yr-text);
}
.yr-proof-card .yr-proof-person {
  margin-top: 22px;
}
.yr-proof-card .yr-proof-avatar {
  width: 38px;
  height: 38px;
  background: rgba(12, 28, 54, 0.08);
  color: var(--yr-heading);
}
.yr-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.yr-proof-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(12, 28, 54, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--yr-text);
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Client feedback: restrained proof board */
.yr-proof-redesign {
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
}

.yr-proof-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}

.yr-proof-main,
.yr-proof-side {
  min-width: 0;
}

.yr-proof-statement {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4vw, 64px);
  border: 1px solid rgba(12, 28, 54, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.98)),
    #fff;
  box-shadow: 0 18px 54px rgba(12, 28, 54, 0.06);
}

.yr-proof-redesign .yr-proof-quote p {
  max-width: 18em;
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 780;
  line-height: 1.28;
}

.yr-proof-redesign .yr-proof-person {
  margin-top: 32px;
}

.yr-proof-side {
  display: grid;
  gap: 14px;
}

.yr-proof-points {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(12, 28, 54, 0.1);
  border-radius: 8px;
  background: #fff;
}

.yr-proof-points span {
  display: grid;
  gap: 5px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--yr-line);
}

.yr-proof-points span:last-child {
  border-bottom: 0;
}

.yr-proof-points strong {
  color: var(--yr-heading);
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.25;
}

.yr-proof-points small {
  color: var(--yr-muted);
  font-size: 13px;
  line-height: 1.45;
}

.yr-proof-notes {
  display: grid;
  gap: 14px;
}

.yr-proof-note {
  padding: 24px;
  border: 1px solid rgba(12, 28, 54, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.yr-proof-note p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--yr-text);
  font-size: 14.5px;
  line-height: 1.68;
}

.yr-proof-note .yr-proof-person {
  margin-top: 18px;
}

.yr-proof-redesign .yr-proof-tags {
  margin-top: 24px;
}

/* Client feedback: clean three-card layout */
.yr-testimonials-simple {
  background: linear-gradient(180deg, #fff 0%, #f5f7fa 100%);
}

.yr-testimonial-head {
  max-width: 760px;
  margin: 0 auto clamp(34px, 4.4vw, 58px);
  text-align: center;
}

.yr-testimonial-head .yr-h2 {
  position: relative;
  display: inline-block;
  margin-inline: auto;
  padding-inline: clamp(36px, 5vw, 74px);
}

.yr-testimonial-head .yr-h2::before,
.yr-testimonial-head .yr-h2::after {
  position: absolute;
  top: 50%;
  color: color-mix(in srgb, var(--yr-accent) 16%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6vw, 96px);
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-46%);
}

.yr-testimonial-head .yr-h2::before {
  content: "\201C";
  left: 0;
}

.yr-testimonial-head .yr-h2::after {
  content: "\201D";
  right: 0;
}

.yr-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.yr-testimonial-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(28px, 2.7vw, 38px);
  border: 1px solid rgba(12, 28, 54, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(12, 28, 54, 0.07);
}

.yr-testimonial-text {
  margin: 0;
  color: var(--yr-text);
  font-size: 15.5px;
  line-height: 1.78;
}

.yr-testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.yr-testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: #eef2f7;
  color: #fff;
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.yr-testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yr-testimonial-avatar--initials {
  background: linear-gradient(135deg, #2f3a4c 0%, #111827 100%);
}

.yr-testimonial-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.yr-testimonial-name {
  color: var(--yr-heading);
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.25;
}

.yr-testimonial-role {
  color: var(--yr-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .yr-proof-layout {
    grid-template-columns: 1fr;
  }

  .yr-proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yr-proof-board {
    grid-template-columns: 1fr;
  }

  .yr-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .yr-proof-sec {
    overflow-x: clip;
  }
}

@media (max-width: 781px) {
  .yr-proof-head {
    margin-bottom: 30px;
  }

  .yr-proof-layout {
    gap: 16px;
  }

  .yr-proof-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .yr-proof-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .yr-proof-photo img {
    position: static;
  }

  .yr-proof-feature-body {
    padding: 30px;
  }

  .yr-proof-mark {
    top: 18px;
    right: 24px;
    font-size: 72px;
  }

  .yr-proof-quote p {
    font-size: 21px;
  }

  .yr-proof-list {
    grid-template-columns: 1fr;
  }

  .yr-proof-statement {
    padding: 30px;
  }

  .yr-proof-redesign .yr-proof-quote p {
    font-size: 24px;
  }

  .yr-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .yr-testimonial-head .yr-h2 {
    padding-inline: 32px;
  }

  .yr-testimonial-head .yr-h2::before,
  .yr-testimonial-head .yr-h2::after {
    font-size: 52px;
    opacity: 0.72;
  }

  .yr-testimonial-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .yr-proof-statement,
  .yr-proof-note {
    padding: 22px;
  }

  .yr-proof-feature-body,
  .yr-proof-card {
    padding: 22px;
  }

  .yr-proof-quote p {
    font-size: 19px;
  }

  .yr-proof-redesign .yr-proof-quote p {
    font-size: 21px;
  }

  .yr-proof-tags {
    gap: 8px;
  }

  .yr-testimonial-head .yr-h2 {
    padding-inline: 0;
  }

  .yr-testimonial-head .yr-h2::before,
  .yr-testimonial-head .yr-h2::after {
    display: none;
  }

  .yr-testimonial-card {
    padding: 24px;
  }

  .yr-testimonial-person {
    padding-top: 24px;
  }
}
