/* hb-reviews: pixel-aligned to Figma frame 1000007500 / 1000007510 (BEM, hb- prefix only) */

:root {
  --hb-reviews-bg: #fafaf0;
  --hb-reviews-card: #ffffff;
  --hb-reviews-text: #1e1e1e;
  --hb-reviews-muted: #757575;
  --hb-reviews-trustpilot: #00b67a;
  --hb-reviews-fiverr-star: #f4be57;
  --hb-reviews-link: #1d9bf0;
  --hb-reviews-radius-card: 24px;
  --hb-reviews-radius-card-mobile: 12px;
  --hb-reviews-radius-pill: 32px;
  --hb-reviews-gap: 16px;
  --hb-reviews-max: 1280px;
  --hb-reviews-pad-x: 80px;
  --hb-reviews-pad-y: 80px;
  --hb-reviews-font: "Montserrat", system-ui, -apple-system, sans-serif;
  --hb-reviews-font-body: "Poppins", system-ui, -apple-system, sans-serif;
}

.page-width {
  max-width: 100%;
}

.hb-reviews {
  background-color: var(--hb-reviews-bg);
  color: var(--hb-reviews-text);
  font-family: var(--hb-reviews-font);
  -webkit-font-smoothing: antialiased;
  padding-block: 60px;
}

.hb-reviews__inner {
  max-width: var(--hb-reviews-max);
  margin-inline: auto;
}


.hb-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hb-reviews-gap);
  align-items: stretch;
}

.hb-reviews__card {
  background: var(--hb-reviews-card);
  border-radius: var(--hb-reviews-radius-card);
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hb-reviews__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hb-reviews__author {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.hb-reviews__avatar {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hb-reviews__author-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hb-reviews__name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}

.hb-reviews__name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--hb-reviews-text);
}

.hb-reviews__verified {
  display: inline-flex;
  flex-shrink: 0;
}

.hb-reviews__verified svg {
  display: block;
}

.hb-reviews__meta {
  margin: 0;
  font-family: var(--hb-reviews-font-body);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.2;
  color: var(--hb-reviews-muted);
}

.hb-reviews__meta--multiline {
  font-size: 13px;
  line-height: 1.25;
}

.hb-reviews__platform {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-reviews-text);
}

.hb-reviews__platform--trustpilot {
  color: var(--hb-reviews-trustpilot);
}

.hb-reviews__platform-icon {
  display: block;
}

.hb-reviews__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.hb-reviews__body--plain {
  gap: 0;
}

/* Trustpilot-style rating strip (5 green tiles + white stars) */
.hb-reviews__stars--trustpilot {
  display: flex;
  gap: 1.92px;
  width: 123px;
}

.hb-reviews__tp-star {
  width: 23.06px;
  height: 23px;
  background: var(--hb-reviews-trustpilot);
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
}

.hb-reviews__tp-star::before {
  content: "★";
  font-size: 11px;
  line-height: 1;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
}

.hb-reviews__text-wrap {
  position: relative;
}

.hb-reviews__text {
  margin: 0;
  font-family: var(--hb-reviews-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--hb-reviews-text);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-reviews__card--trustpilot .hb-reviews__text-wrap.is-expanded .hb-reviews__text,
.hb-reviews__text--expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.hb-reviews__see-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--hb-reviews-link);
  font-size: 15px;
  font-weight: 500;
  display: inline;
}

.hb-reviews__ellipsis {
  color: var(--hb-reviews-text);
}

.hb-reviews__text-wrap:not(.is-collapsible) .hb-reviews__see-more,
.hb-reviews__see-more.is-hidden {
  display: none;
}

.hb-reviews__timestamp {
  margin: 0;
  font-family: var(--hb-reviews-font-body);
  font-size: 11px;
  line-height: 1.2;
  color: var(--hb-reviews-muted);
}

.hb-reviews__meta-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hb-reviews__category {
  margin: 0;
  font-family: var(--hb-reviews-font-body);
  font-size: 11px;
  line-height: 1.2;
  color: var(--hb-reviews-muted);
}

.hb-reviews__engage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hb-reviews__engage-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--hb-reviews-text);
}

.hb-reviews__engage-icon {
  display: inline-flex;
}

.hb-reviews__timestamp--right {
  margin-left: auto;
  text-align: right;
}

/* Fiverr gold stars under name */
.hb-reviews__inline-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.hb-reviews__inline-stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  font-size: 20px;
  line-height: 1;
  color: var(--hb-reviews-fiverr-star);
  font-family: "Montserrat", sans-serif;
}

.hb-reviews__footer {
  margin-top: auto;
}

.hb-reviews__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  padding: 12px 16px;
  border-radius: var(--hb-reviews-radius-pill);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hb-reviews__btn--outline {
  border: 1px solid var(--hb-reviews-muted);
  color: var(--hb-reviews-text);
  background: transparent;
}

.hb-reviews__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 60px;
}

.hb-reviews__load-more {
  border: 0;
  background: none;
  padding: 16px 20px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--hb-reviews-text);
  cursor: pointer;
}

.hb-reviews__load-more[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.hb-reviews__schedule {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 327px;
  min-height: 43px;
  padding: 12px 20px;
  border-radius: var(--hb-reviews-radius-pill);
  background: var(--hb-reviews-text);
  color: #ffffff;
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.hb-reviews__card--hidden {
  display: none !important;
}

/* Desktop hover: only for fine pointers */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .hb-reviews__card:hover {
    border-color: rgba(30, 30, 30, 0.08);
    box-shadow: 0 18px 40px rgba(30, 30, 30, 0.06);
    transform: translateY(-2px);
  }

  .hb-reviews__btn--outline:hover {
    background: rgba(30, 30, 30, 0.04);
    border-color: var(--hb-reviews-text);
  }

  .hb-reviews__load-more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .hb-reviews__schedule:hover {
    filter: brightness(1.08);
  }

  .hb-reviews__see-more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --hb-reviews-pad-x: 40px;
  }
}

@media screen and (max-width: 1024px) {
  .hb-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  :root {
    --hb-reviews-pad-x: 24px;
    --hb-reviews-pad-y: 40px;
  }
  .hb-reviews {
    padding-block: 40px;
  }

  .hb-reviews__grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-inline: calc(var(--hb-reviews-pad-x) * -1);
    padding-inline: var(--hb-reviews-pad-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--hb-reviews-pad-x);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .hb-reviews__grid::-webkit-scrollbar {
    height: 0;
  }

  .hb-reviews__card {
    flex: 0 0 min(327px, calc(100vw - 48px));
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 0;
    border-radius: var(--hb-reviews-radius-card-mobile);
    padding: 24px 16px 16px;
    gap: 32px;
  }

  .hb-reviews__avatar {
    width: 41px;
    height: 41px;
  }

  .hb-reviews__name {
    font-size: 13px;
  }

  .hb-reviews__meta {
    font-size: 10px;
  }

  .hb-reviews__meta--multiline {
    font-size: 10px;
  }

  .hb-reviews__text {
    font-size: 14px;
  }

  .hb-reviews__platform-icon {
    width: 30px !important;
    height: auto !important;
    max-height: 30px;
  }

  .hb-reviews__platform--youtube .hb-reviews__platform-icon {
    width: 31px !important;
    height: 22px !important;
  }

  .hb-reviews__verified svg {
    width: 16px;
    height: 16px;
  }

  .hb-reviews__btn {
    min-height: 43px;
    font-size: 11px;
  }

  /* Remove hover affordances on touch layout */
  .hb-reviews__card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .hb-reviews__schedule {
    display: inline-flex;
    max-width: 100%;
  }

  .hb-reviews__bottom {
    margin-top: 32px;
    align-items: stretch;
  }

  .hb-reviews__load-more {
    order: 1;
    padding-top: 8px;
  }

  .hb-reviews__schedule {
    order: 2;
    font-size: 11px;
    min-height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-reviews__card,
  .hb-reviews__btn--outline,
  .hb-reviews__load-more {
    transition: none;
  }

  @media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .hb-reviews__card:hover {
      transform: none;
    }
  }
}

/* ── Clutch reviews ── */
.hb-reviews__platform--clutch { color: #17313b; }
.hb-reviews__avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: #1e1e1e; color: #bbf340;
  font-family: var(--hb-reviews-font); font-weight: 700; font-size: 18px; letter-spacing: .5px;
}
.hb-reviews__badge {
  font-family: var(--hb-reviews-font-body); font-size: 11px; font-weight: 500; line-height: 1;
  padding: 4px 8px; border-radius: 20px; background: #e9f9d0; color: #3d6b00;
}
.hb-reviews__rating-row { display: flex; align-items: center; gap: 10px; }
.hb-reviews__stars--clutch .hb-reviews__tp-star { background: #ef4335; }
.hb-reviews__stars--clutch .hb-reviews__tp-star--off { background: #d9d9d9; }
.hb-reviews__score { font-weight: 600; font-size: 15px; }
.hb-reviews__project {
  margin: 0; font-family: var(--hb-reviews-font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--hb-reviews-muted);
}
.hb-reviews__quote {
  margin: 0; font-family: var(--hb-reviews-font); font-size: 18px; font-weight: 600; line-height: 1.35;
  color: var(--hb-reviews-text);
}
.hb-reviews__card--clutch .hb-reviews__body { gap: 14px; }
.hb-reviews__card--clutch .hb-reviews__text-wrap.is-expanded .hb-reviews__text { -webkit-line-clamp: unset; display: block; }
.hb-reviews__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: #fff; border-radius: var(--hb-reviews-radius-card); padding: 24px 32px; margin-bottom: 24px;
}
.hb-reviews__summary-score { display: flex; align-items: center; gap: 16px; }
.hb-reviews__summary-num { font-size: 48px; font-weight: 700; line-height: 1; }
.hb-reviews__summary-text { margin: 8px 0 0; font-family: var(--hb-reviews-font-body); font-size: 14px; color: var(--hb-reviews-muted); }
@media screen and (min-width: 769px) {
  .hb-reviews__grid:not(.is-all) .hb-reviews__card--more { display: none; }
}
@media screen and (max-width: 768px) {
  .hb-reviews__summary { padding: 20px; border-radius: var(--hb-reviews-radius-card-mobile); }
  .hb-reviews__summary-num { font-size: 40px; }
  .hb-reviews__quote { font-size: 16px; }
}
.hb-reviews__load-more[hidden] { display: none !important; }
.hb-reviews__summary .hb-reviews__btn { width: auto; flex: 0 0 auto; padding-inline: 28px; }
.hb-reviews__summary-score { flex: 1 1 auto; }
