/* Elementor integration only; reference-stats.css contains the copied design. */
@font-face { font-family: 'Momo Trust Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/MomoTrustSans-700.ttf') format('truetype'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Urbanist-800.ttf') format('truetype'); }
.jn-stats { box-sizing: border-box; }
/* The reference uses content-box; preserve its dimensions under Elementor's reset. */
.jn-stats *, .jn-stats::after { box-sizing: content-box; }
/* Center each statistic within its equal-width grid column. */
.jn-stats .stats-grid { justify-items: center; text-align: center; }
.jn-stats .stat-item { justify-items: center; min-width: 0; }
.jn-stats .jn-testimonial-avatar--custom { background-image: none; overflow: hidden; }
.jn-stats .testimonial-avatar :is(img, video) { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.jn-stats.is-static, .jn-stats[data-reveal=""] { --stats-grid-opacity: 1; --stats-grid-blur: 0px; --stats-grid-shift: 0px; --stats-grid-scale: 1; --testimonials-intro-opacity: 1; --testimonials-intro-shift: 0px; }
.jn-stats.is-static .testimonial-card, .jn-stats[data-reveal=""] .testimonial-card { opacity: 1; filter: none; transform: translate3d(var(--testimonial-x, 0px), var(--testimonial-y, 0px), 0) rotate(var(--testimonial-rotate, 0deg)); }
.jn-stats.is-paused .testimonial-card-inner, .jn-stats[data-drift=""] .testimonial-card-inner { animation-play-state: paused; }
.jn-stats[data-many="yes"] .testimonials-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-height: 0; }
.jn-stats[data-many="yes"] .testimonial-card { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; --testimonial-x: 0px; --testimonial-y: 0px; --testimonial-rotate: 0deg; }
@media (max-width: 900px) { .jn-stats.is-static .testimonial-card, .jn-stats[data-reveal=""] .testimonial-card { transform: none; } .jn-stats[data-many="yes"] .testimonials-field { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .jn-stats .testimonial-card-inner { animation: none; } .jn-stats .testimonial-card { opacity: 1; filter: none; transform: none; } }

.jn-stats .testimonial-card-inner { background: linear-gradient(135deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 5%)), #1a1a1a; }

/* Render a stable editor view even before the frontend handler initializes. */
.jn-stats[data-editor="yes"], .elementor-editor-active .jn-stats {
  --stats-grid-opacity: 1;
  --stats-grid-blur: 0px;
  --stats-grid-shift: 0px;
  --stats-grid-scale: 1;
  --testimonials-intro-opacity: 1;
  --testimonials-intro-shift: 0px;
}
.jn-stats[data-editor="yes"] .testimonial-card,
.elementor-editor-active .jn-stats .testimonial-card {
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
  max-width: 620px;
  margin: 0 auto;
  /* Editor re-renders can retain inline reveal styles from an earlier handler. */
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}
.jn-stats[data-editor="yes"] .testimonials-field,
.elementor-editor-active .jn-stats .testimonials-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
  perspective: none;
}
.jn-stats[data-editor="yes"] .testimonial-card-inner,
.elementor-editor-active .jn-stats .testimonial-card-inner {
  box-sizing: border-box;
  min-height: 0;
  overflow-wrap: anywhere;
  animation: none;
}

@media (max-width: 900px) {
  .jn-stats .testimonials-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
  }
  .jn-stats .testimonial-card {
    position: static;
    width: 100%;
    min-width: 0;
    opacity: 1;
    filter: none;
    transform: none !important;
  }
  .jn-stats .testimonial-card-inner {
    box-sizing: border-box;
    min-height: 0;
    overflow-wrap: anywhere;
    animation: none;
  }
}

.jn-stats .testimonials-intro h2 { font-size: var(--jn-heading-xl); letter-spacing: var(--jn-heading-tracking); }
@media (max-width: 520px) {
  .jn-stats .testimonials-intro h2 { font-size: var(--jn-heading-lg); }
}

/* Reviews: one quote size, comfortable reading, and an optional link to the source. */
.jn-stats .testimonials-intro .jn-google-rating { justify-self: center; margin-top: 26px; }
.jn-stats .testimonials-intro .jn-google-rating span { color: inherit; font: inherit; letter-spacing: 0; text-transform: none; }
.jn-stats .testimonials-intro .jn-google-rating .jn-stars { color: #fbbc04; }
.jn-stats .testimonial-card--one { --testimonial-rotate: -2deg; }
.jn-stats .testimonial-card--two { --testimonial-width: 480px; --testimonial-padding: 28px; --testimonial-avatar-size: 48px; --testimonial-rotate: 1.2deg; }
.jn-stats .testimonial-card--three { --testimonial-rotate: 2deg; }
.jn-stats .testimonial-card-inner { gap: 20px; }
.jn-stats .testimonial-card p { color: #ffffffe6; font-size: 19px; font-weight: 400; line-height: 1.45; }
.jn-stats .testimonial-card strong { font-size: 16px; line-height: 1.25; }
.jn-stats .testimonial-card small { color: #ffffff99; line-height: 1.3; }
.jn-stats .testimonial-card .jn-stars { display: flex; }
.jn-stats .testimonial-link { width: fit-content; color: #ffffffd9; font: 500 14px/1.4 "Aspekta Variable", Arial, sans-serif; text-decoration: underline; text-decoration-color: #ffffff59; text-underline-offset: 4px; }
.jn-stats .testimonial-link:is(:hover, :focus-visible) { color: #fff; text-decoration-color: #fff; }
@media (max-width: 520px) {
  .jn-stats .testimonials-intro .jn-google-rating { margin-top: 18px; }
  .jn-stats .testimonial-card p { font-size: 17px; }
}

/* Numbers sit under the heading as one quiet line; the heading stays fully white. */
.jn-stats .testimonials-intro { opacity: 1; }
.jn-stats .testimonials-intro .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 34px; max-width: none; margin: 22px 0 0; opacity: 1; filter: none; transform: none; }
.jn-stats .testimonials-intro .stat-item { display: flex; align-items: baseline; gap: 8px; }
.jn-stats .testimonials-intro .stat-item strong { color: #fff; font: 800 26px/1.1 var(--font-display); letter-spacing: -.01em; }
.jn-stats .testimonials-intro .stat-item span { color: #ffffffb3; font: 400 17px/1.3 var(--font-secondary); letter-spacing: 0; text-transform: none; }
@media (max-width: 520px) {
  .jn-stats .testimonials-intro .stats-grid { gap: 6px 22px; margin-top: 16px; }
  .jn-stats .testimonials-intro .stat-item strong { font-size: 22px; }
  .jn-stats .testimonials-intro .stat-item span { font-size: 15px; }
}
