/* HabitSprouts — reviews section. Uses the variables defined in styles.css. */

.r-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 820px; margin: 0 auto 18px; }
.r-stat { background: var(--white); border-radius: var(--r-md); padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.r-stat strong { display: block; font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 700; font-size: 2.8rem; line-height: 1; color: var(--leaf-d); }
.r-stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 700; font-size: .92rem; line-height: 1.35; }

.r-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin: 0 auto 40px; }
.r-facts li { background: var(--cream); color: var(--ink); font-weight: 700; font-size: .92rem; padding: 8px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }

/* gallery: bleeds to the screen edges, first card lines up with the page content */
.r-gallery { --edge: max(24px, calc((100% - var(--maxw)) / 2 + 24px)); }
.r-track {
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 24px var(--edge) 48px; margin: -14px 0 -22px; /* extra room so the card shadows aren't clipped */
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.r-track::-webkit-scrollbar { display: none; }

.r-card {
  flex: 0 0 min(430px, 82vw); scroll-snap-align: start;
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 34px 30px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  border: 1px solid rgba(58, 51, 39, .04);
}
.r-card blockquote { font-size: 1.06rem; font-weight: 600; line-height: 1.7; color: var(--ink); }
.r-card blockquote::before {
  content: "\201C"; display: block; font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 4.2rem; line-height: .7; height: 34px; color: var(--coral);
}
.r-card figcaption { font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--leaf-d); display: flex; align-items: center; gap: 10px; }
.r-card figcaption::before { content: ""; width: 26px; height: 4px; border-radius: 4px; background: var(--leaf); flex: none; }

.r-controls { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.r-dots { display: flex; gap: 8px; }
.r-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(58, 51, 39, .22); cursor: pointer; transition: width .2s ease, background .2s ease; }
.r-dot[aria-current="true"] { width: 28px; background: var(--leaf); }
.r-arrows { display: flex; gap: 10px; }
.r-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; transition: color .15s ease, transform .15s ease; }
.r-btn:hover:not(:disabled) { color: var(--leaf-d); transform: translateY(-1px); }
.r-btn:disabled { opacity: .45; cursor: default; }
.r-btn:focus-visible, .r-dot:focus-visible, .r-track:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

@media (max-width: 640px) {
  .r-stats { grid-template-columns: 1fr; }
  .r-stat strong { font-size: 2.4rem; }
  .r-card { padding: 28px 22px 24px; }
  .r-btn { width: 44px; height: 44px; }
}

/* sits directly under "What we teach", same spacing pattern */
.reviews { padding-top: 0; }
