/* Native Google-style review cards (testimonials page + homepage) */

.npro-reviews {
  --npro-star: #fbbc04;
  --npro-card-bg: #fff;
  --npro-text: #202124;
  --npro-muted: #70757a;
  --npro-border: #e8eaed;
  --npro-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.08);
  font-family: "Google Sans", Roboto, "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--npro-text);
  box-sizing: border-box;
}
.npro-reviews *,
.npro-reviews *::before,
.npro-reviews *::after {
  box-sizing: border-box;
}

/* ---- Header (testimonials page) ---- */
.npro-reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem 1.75rem;
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}
.npro-reviews-header__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--npro-text);
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}
.npro-reviews-header__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0;
}
.npro-reviews-header__score {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--npro-text);
  letter-spacing: -0.02em;
}
.npro-reviews-header__based {
  font-size: 0.875rem;
  color: var(--npro-muted);
  margin: 0;
}
.npro-reviews-header__powered {
  font-size: 0.8125rem;
  color: var(--npro-muted);
  margin: 0.15rem 0 0.5rem;
}
.npro-reviews-header__powered .g {
  font-weight: 500;
}
.npro-reviews-header__powered .g1 { color: #4285f4; }
.npro-reviews-header__powered .g2 { color: #ea4335; }
.npro-reviews-header__powered .g3 { color: #fbbc04; }
.npro-reviews-header__powered .g4 { color: #4285f4; }
.npro-reviews-header__powered .g5 { color: #34a853; }
.npro-reviews-header__powered .g6 { color: #ea4335; }

.npro-reviews-header__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  margin-top: 0.35rem !important;
  padding: 0.55rem 1.1rem !important;
  border: 1px solid #dadce0 !important;
  border-radius: 4px !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #1a73e8 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08) !important;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  width: auto !important;
  min-height: 0 !important;
  fill: none !important;
}
.npro-reviews-header__btn:hover,
.npro-reviews-header__btn:focus-visible {
  background: #f8f9fa !important;
  background-color: #f8f9fa !important;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15) !important;
  color: #174ea6 !important;
  border-color: #dadce0 !important;
}
.npro-reviews-header__btn span {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.npro-reviews-header__btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* ---- Stars ---- */
.npro-stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
  vertical-align: middle;
}
.npro-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--npro-star);
  display: block;
}
.npro-reviews-header__rating .npro-stars svg {
  width: 20px;
  height: 20px;
}

/* ---- Card grid (testimonials page) ---- */
.npro-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 0 0 1.5rem;
  margin: 0;
  list-style: none;
  align-items: start;
}
@media (max-width: 600px) {
  .npro-reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Card ---- */
.npro-review-card {
  position: relative;
  background: var(--npro-card-bg);
  border: 1px solid var(--npro-border);
  border-radius: 8px;
  box-shadow: var(--npro-shadow);
  padding: 1.2rem 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  text-align: left;
  text-transform: none !important;
  letter-spacing: normal !important;
  /* Card outer size never changes on read-more toggle */
  overflow: hidden;
}
.npro-review-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-right: 1.4rem;
}
.npro-review-card__meta {
  min-width: 0;
  flex: 1;
}
.npro-review-card__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--npro-text);
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none !important;
}
.npro-review-card__date {
  display: block;
  font-size: 0.75rem;
  color: var(--npro-muted);
  margin-top: 0.1rem;
  line-height: 1.3;
}
.npro-review-card__g {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 16px;
  height: 16px;
  line-height: 0;
}
.npro-review-card__g svg {
  width: 16px;
  height: 16px;
  display: block;
}
.npro-review-card__stars {
  margin-top: 0.05rem;
}
.npro-review-card__body {
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--npro-text);
  text-transform: none !important;
  letter-spacing: normal !important;
  /* Fixed text viewport: 5 lines. Expand scrolls inside; card/row never grow. */
  --npro-review-text-h: calc(0.875rem * 1.5 * 5);
}
.npro-review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: var(--npro-review-text-h);
  box-sizing: border-box;
}
/* Expanded: lock to the clamped viewport height; scroll inside; card never grows */
.npro-review-card.is-expanded .npro-review-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: var(--npro-review-text-h);
  height: var(--npro-review-text-h);
  min-height: var(--npro-review-text-h);
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 33, 36, 0.28) transparent;
  padding-right: 0.2rem;
}
.npro-review-card.is-expanded .npro-review-text::-webkit-scrollbar {
  width: 4px;
}
.npro-review-card.is-expanded .npro-review-text::-webkit-scrollbar-track {
  background: transparent;
}
.npro-review-card.is-expanded .npro-review-text::-webkit-scrollbar-thumb {
  background: rgba(32, 33, 36, 0.28);
  border-radius: 4px;
}
/* Subtle bottom fade while more content is below; gone at scroll end */
.npro-review-card.is-expanded:not(.is-scroll-end) .npro-review-card__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.35rem;
  bottom: 1.65rem; /* sit above the Read less button */
  height: 1.75rem;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92) 70%,
    #fff
  );
  z-index: 1;
}
.npro-review-more {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 0.2rem 0 0 !important;
  margin: 0 !important;
  font: inherit !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #1a73e8 !important;
  cursor: pointer !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  display: inline-block !important;
}
.npro-review-more:hover,
.npro-review-more:focus-visible {
  text-decoration: underline !important;
  background: transparent !important;
  color: #174ea6 !important;
}
.npro-review-more[hidden] {
  display: none !important;
}

/* ---- Avatar ---- */
.npro-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--av-bg, #9aa0a6);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  user-select: none;
}
.npro-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  background: var(--av-bg, #9aa0a6);
}
.npro-avatar__letter {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: Roboto, "DM Sans", system-ui, sans-serif;
}

/* ---- Full-width white reviews band (home + contact) ---- */
/* Full-bleed via box-shadow + clip-path — never uses 100vw (which
   expands scrollWidth past clientWidth on mobile and pans the page). */
.npro-reviews-band {
  --npro-star: #fbbc04;
  --npro-card-bg: #fff;
  --npro-text: #202124;
  --npro-muted: #70757a;
  --npro-border: #e8eaed;
  --npro-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.08);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  left: auto;
  right: auto;
  background: #fff;
  /* Paint white past parent edges without growing layout/scrollWidth */
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
  color: var(--npro-text);
  box-sizing: border-box;
  padding: 3.25rem 0 3.5rem;
  z-index: 1;
}
.npro-reviews-band__inner {
  width: min(1200px, calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.npro-reviews-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  margin: 0 0 0.75rem;
}
.npro-reviews-band__title {
  margin: 0 !important;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--npro-text) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.npro-reviews-band__all {
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  color: #1a73e8 !important;
  text-decoration: none !important;
  text-transform: none !important;
}
.npro-reviews-band__all:hover,
.npro-reviews-band__all:focus-visible {
  text-decoration: underline !important;
  color: #174ea6 !important;
}
.npro-reviews-band--contact {
  padding: 2.25rem 0 2.5rem;
  margin-top: 0.75rem;
}
.npro-reviews-band--contact .npro-band-badge {
  margin: 0 0 1.15rem;
}

/* Compact Google badge (home + contact bands) — mirrors page header */
.npro-band-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0.55rem 0 1.4rem;
  color: var(--npro-text);
  text-transform: none !important;
}
.npro-band-badge__g {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  line-height: 0;
}
.npro-band-badge__g svg {
  width: 28px;
  height: 28px;
  display: block;
}
.npro-band-badge__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-width: 0;
}
.npro-band-badge__wordmark {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--npro-text);
  letter-spacing: normal;
  white-space: nowrap;
}
.npro-band-badge__wordmark .g {
  font-weight: 500;
}
.npro-band-badge__wordmark .g1 { color: #4285f4; }
.npro-band-badge__wordmark .g2 { color: #ea4335; }
.npro-band-badge__wordmark .g3 { color: #fbbc04; }
.npro-band-badge__wordmark .g4 { color: #4285f4; }
.npro-band-badge__wordmark .g5 { color: #34a853; }
.npro-band-badge__wordmark .g6 { color: #ea4335; }
.npro-band-badge__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.npro-band-badge__score {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--npro-text);
}
.npro-band-badge__rating .npro-stars svg {
  width: 16px;
  height: 16px;
}
.npro-band-badge__based {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--npro-muted);
  white-space: nowrap;
}

/* Contact-only: cards ~1.2x (wider + proportionally larger type/avatar/padding).
   Stay inside the scroll row so page-level overflow stays zero. */
.npro-reviews-band--contact .npro-reviews-scroll__row > .npro-review-card,
.npro-reviews-band--contact .npro-home-reviews__row > .npro-review-card {
  flex: 0 0 min(336px, 86%);
  max-width: 360px;
  padding: 1.44rem 1.38rem 1.32rem;
  gap: 0.66rem;
  border-radius: 9.6px;
}
.npro-reviews-band--contact .npro-review-card__top {
  gap: 0.78rem;
  padding-right: 1.68rem;
}
.npro-reviews-band--contact .npro-review-card__name {
  font-size: 1.125rem;
}
.npro-reviews-band--contact .npro-review-card__date {
  font-size: 0.9rem;
}
.npro-reviews-band--contact .npro-review-card__g {
  top: 1.02rem;
  right: 1.02rem;
  width: 19px;
  height: 19px;
}
.npro-reviews-band--contact .npro-review-card__g svg {
  width: 19px;
  height: 19px;
}
.npro-reviews-band--contact .npro-review-card__body {
  font-size: 1.05rem;
  line-height: 1.5;
  --npro-review-text-h: calc(1.05rem * 1.5 * 5);
}
.npro-reviews-band--contact .npro-review-more {
  font-size: 0.975rem !important;
}
.npro-reviews-band--contact .npro-avatar {
  width: 48px;
  height: 48px;
  line-height: 48px;
  font-size: 1.2rem;
}
.npro-reviews-band--contact .npro-stars svg {
  width: 16.8px;
  height: 16.8px;
}

/* Scroll row + one-card snap (home, contact; any .npro-reviews-scroll) */
.npro-reviews-scroll {
  position: relative;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}
.npro-reviews-scroll__row,
.npro-home-reviews__row {
  display: flex;
  flex-direction: row;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 2.5rem 0.9rem 0.1rem;
  align-items: stretch;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.npro-reviews-scroll__row > .npro-review-card,
.npro-home-reviews__row > .npro-review-card {
  flex: 0 0 min(280px, 82%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  max-width: 300px;
  /* stretch to row; text viewport fixed so expand never grows row */
  height: auto;
  align-self: stretch;
}

/* Right-edge chevron: advances one card; subtle pulse */
.npro-reviews-chevron {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-55%);
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--npro-border) !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.18) !important;
  color: #202124 !important;
  cursor: pointer !important;
  min-height: 0 !important;
  min-width: 0 !important;
  animation: npro-chevron-pulse 2.4s ease-in-out infinite;
}
.npro-reviews-chevron:hover,
.npro-reviews-chevron:focus-visible {
  background: #f8f9fa !important;
  border-color: #dadce0 !important;
  outline: 2px solid #f5b31b;
  outline-offset: 2px;
}
.npro-reviews-chevron svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes npro-chevron-pulse {
  0%,
  100% {
    transform: translateY(-55%) translateX(0);
    box-shadow: 0 2px 8px rgba(60, 64, 67, 0.18);
  }
  50% {
    transform: translateY(-55%) translateX(3px);
    box-shadow: 0 3px 12px rgba(60, 64, 67, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .npro-reviews-chevron {
    animation: none;
  }
}

/* Kill parent Elementor uppercase bleed on our block */
.npro-reviews,
.npro-reviews .npro-review-card,
.npro-reviews .npro-review-card * {
  text-transform: none !important;
}
