/* Google reviews section (rating panel + review carousel).
   Shared by every page that shows client reviews. */

/* --------------------------------------------------------------------------
   Client Reviews (Google)
   -------------------------------------------------------------------------- */
.mp-reviews {
  margin: 70px 0 80px;
}

.mp-reviews-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.mp-reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 222, 190, 0.12);
  border: 1px solid rgba(7, 222, 190, 0.35);
  color: #05a892;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-reviews-title {
  margin: 16px 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #15212a;
}

.mp-reviews-sub {
  margin: 0;
  font-size: 15px;
  color: #6b7280;
}

/* Rating summary panel */
.mp-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 36px;
  border-radius: 20px;
  background: #15212a;
  background-image: radial-gradient(60% 140% at 100% 0%, rgba(7, 222, 190, 0.16) 0%, rgba(7, 222, 190, 0) 70%);
  box-shadow: 0 18px 40px rgba(21, 33, 42, 0.18);
}

.mp-reviews-score {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mp-google-g {
  width: 56px;
  height: 56px;
  padding: 12px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
}

.mp-reviews-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-reviews-rating strong {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.mp-reviews-stars {
  display: inline-flex;
  gap: 4px;
  color: #fbbc04;
  font-size: 18px;
}

.mp-reviews-count {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.mp-reviews-count strong {
  color: #ffffff;
}

.mp-reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mp-reviews-btn-primary {
  background: #07debe;
  color: #0c1a20 !important;
  box-shadow: 0 8px 22px rgba(7, 222, 190, 0.3);
}

.mp-reviews-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 222, 190, 0.42);
}

.mp-reviews-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
}

.mp-reviews-btn-ghost:hover {
  border-color: #07debe;
  background: rgba(7, 222, 190, 0.1);
}

/* Review cards */
.mp-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.mp-reviews-grid[hidden] {
  display: none;
}

.mp-review-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e8edf0;
  box-shadow: 0 8px 24px rgba(21, 33, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mp-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 222, 190, 0.5);
  box-shadow: 0 16px 36px rgba(21, 33, 42, 0.1);
}

.mp-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.mp-review-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mp-review-name {
  font-size: 15px;
  font-weight: 700;
  color: #15212a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-review-date {
  font-size: 12.5px;
  color: #8a94a0;
}

.mp-review-g {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 0;
  background: none;
}

.mp-review-stars {
  margin: 16px 0 10px;
  font-size: 15px;
}

.mp-review-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b5563;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.mp-review-card.is-open .mp-review-text {
  display: block;
}

.mp-review-more {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #05a892;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mp-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mp-reviews {
    margin: 50px 0 60px;
  }
  .mp-reviews-title {
    font-size: 24px;
  }
  .mp-reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .mp-reviews-actions,
  .mp-reviews-btn {
    width: 100%;
    justify-content: center;
  }
  .mp-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Client testimonials carousel */
.mp-tst {
  position: relative;
  margin-bottom: 28px;
}

.mp-tst-track {
  display: flex;
  gap: 20px;
  padding: 10px 4px 44px;
  margin-bottom: -22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mp-tst-track::-webkit-scrollbar {
  display: none;
}

.mp-tst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
  padding: 26px 20px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef2f4;
  box-shadow: 0 10px 28px rgba(21, 33, 42, 0.06);
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mp-tst-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 222, 190, 0.5);
  box-shadow: 0 18px 38px rgba(21, 33, 42, 0.1);
}

.mp-tst-quote {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 42px;
  color: #e9ecf8;
  pointer-events: none;
}

.mp-tst-stars {
  font-size: 15px;
  margin-bottom: 14px;
}

.mp-tst-text {
  flex: 1;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

.mp-tst-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-tst-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #9fe0c4;
}

.mp-tst-who {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mp-tst-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #15212a;
}

.mp-tst-role {
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.mp-tst-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-tst-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.mp-tst-country img {
  width: 22px;
  height: auto;
  border-radius: 3px;
}

.mp-tst-arrow {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #15212a;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(21, 33, 42, 0.14);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.mp-tst-prev {
  left: -24px;
}

.mp-tst-next {
  right: -24px;
}

.mp-tst-arrow:hover:not(:disabled) {
  background: #07debe;
  color: #0c1a20;
}

.mp-tst-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.mp-tst-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mp-tst-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5dbe0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mp-tst-dots button.is-active {
  background: #07debe;
  transform: scale(1.2);
}

.mp-tst.is-static .mp-tst-arrow,
.mp-tst.is-static .mp-tst-dots {
  display: none;
}

@media (max-width: 1399px) {
  .mp-tst-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

@media (max-width: 1199px) {
  .mp-tst-card {
    flex-basis: calc((100% - 20px) / 2);
  }
  .mp-tst-prev {
    left: -10px;
  }
  .mp-tst-next {
    right: -10px;
  }
}

@media (max-width: 640px) {
  .mp-tst-card {
    flex-basis: 100%;
  }
  .mp-tst-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Google review cards inside the carousel */
.mp-tst[hidden] {
  display: none;
}

.mp-tst-body {
  flex: 1;
  margin-bottom: 22px;
}

.mp-tst-body .mp-tst-text {
  margin: 0;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.mp-tst-card.is-open .mp-tst-text {
  display: block;
}

span.mp-tst-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.mp-tst-g {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* When the section sits inside its own page <section>, that section provides the spacing */
.mp-reviews.mp-reviews--page {
  margin: 0;
}

/* Phones: reviews are swiped, so the arrows (which covered the text) are hidden */
@media (max-width: 640px) {
  .mp-tst-arrow {
    display: none;
  }
  .mp-tst-dots {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .mp-reviews-title {
    font-size: 22px;
  }
}
