/* Reviews v14 — Google-style review cards. Scoped to .reviews-v14 only. */

.reviews-v14 {
  background: #fff;
  padding-block: clamp(48px, 7vw, 88px);
  direction: rtl;
  text-align: right;
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink, #1f2430);
}

/* Header: copy on the right, link on the left (RTL flow) */
.reviews-v14 .gr-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-block-end: 32px;
}

.reviews-v14 .gr-head-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.reviews-v14 .gr-kicker {
  margin: 0 0 6px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--purple, #5b3fd1);
}

.reviews-v14 .gr-title {
  margin: 0;
  font-size: clamp(1.625rem, calc(3.4vw * var(--a11y-scale, 1)), 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink, #1f2430);
}

.reviews-v14 .gr-attribution {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted, #555b66);
}

.reviews-v14 .gr-head-links {
  flex: 0 0 auto;
}

.reviews-v14 .gr-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  background: #fff;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--purple, #5b3fd1);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.reviews-v14 .gr-link:hover {
  border-color: var(--purple, #5b3fd1);
  background: #faf9ff;
}

.reviews-v14 .gr-link:focus-visible {
  outline: 2px solid var(--purple, #5b3fd1);
  outline-offset: 2px;
}

/* Cards grid */
.reviews-v14 .gr-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reviews-v14 .gr-item {
  display: flex;
  margin: 0;
  padding: 0;
}

.reviews-v14 .gr-item::before,
.reviews-v14 .gr-item::marker {
  content: none;
}

.reviews-v14 .gr-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 260px;
  padding: 22px 22px 18px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .04);
}

.reviews-v14 .gr-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reviews-v14 .gr-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Avatar: colored initial underneath, photo on top when it loads */
.reviews-v14 .gr-avatar {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6b7280;
}

.reviews-v14 .gr-avatar--1 { background: #1a73e8; }
.reviews-v14 .gr-avatar--2 { background: #8e44ad; }
.reviews-v14 .gr-avatar--3 { background: #0f8a5f; }

.reviews-v14 .gr-initial {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.reviews-v14 .gr-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border-radius: 50%;
}

.reviews-v14 .gr-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reviews-v14 .gr-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink, #1f2430);
  overflow-wrap: anywhere;
}

.reviews-v14 .gr-date {
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.35;
  color: #5f6368;
}

.reviews-v14 .gr-gicon {
  flex: 0 0 20px;
  display: block;
  width: 20px;
  height: 20px;
  max-width: none;
  margin: 2px 0 0;
}

/* v17: the Google gold (#fbbc04) is only ~1.7:1 on white, so the stars get a dark
   outline (#7a5600, 6.6:1) and the same rating is written out in dark text. */
.reviews-v14 .gr-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 16px 0 10px;
  line-height: 1;
}

.reviews-v14 .gr-stars-glyphs {
  font-size: 1.1875rem;
  letter-spacing: 2px;
  color: #fbbc04;
  -webkit-text-stroke: 1px #7a5600;
  paint-order: stroke fill;
}

.reviews-v14 .gr-score {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #1f2430);
}

.reviews-v14 .gr-text {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink, #1f2430);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.reviews-v14 .gr-foot {
  margin: auto 0 0;
  padding-block-start: 16px;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: #5f6368;
}

@media (max-width: 799px) {
  .reviews-v14 .gr-head {
    align-items: flex-start;
    margin-block-end: 24px;
  }

  .reviews-v14 .gr-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reviews-v14 .gr-card {
    min-height: 0;
    padding: 18px 18px 16px;
  }

  .reviews-v14 .gr-text {
    font-size: 1rem;
  }
}

/* v16: match the content-width divider above the work section. */
.reviews-v14 {
  padding-block: 0;
}

.reviews-v14 > .wrap {
  border-block: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 88px);
}

/* v20: "all reviews on Google" link centred below the cards. */
.reviews-v14 .gr-more {
  display: flex;
  justify-content: center;
  margin: 32px 0 0;
  text-align: center;
}

.reviews-v14 .gr-head + .gr-more {
  margin-block-start: 0;
}

.reviews-v14 .gr-more .gr-link {
  box-sizing: border-box;
  justify-content: center;
}

@media (max-width: 799px) {
  .reviews-v14 .gr-more {
    margin-block-start: 24px;
  }

  .reviews-v14 .gr-more .gr-link {
    width: 100%;
    max-width: 22rem;
  }
}