/* =============================================================================
   Homepage: reviews section + light motion.

   Motion is deliberately restrained — a short fade-and-rise as a block enters
   the viewport, and a small lift on hover. Anything moving on a loop, parallax,
   or long easing would fight the photography. Everything here is disabled under
   prefers-reduced-motion, and the reveal starts from the visible state so the
   page still reads correctly if the script never runs.
   ========================================================================== */

.jsc-reviews {
  background:
    radial-gradient(1100px 460px at 12% -8%, rgba(232,118,59,.10), transparent 60%),
    linear-gradient(180deg, #fffaf6 0%, #fbf2ea 100%);
  padding: clamp(64px, 8vw, 112px) 20px;
  border-top: 1px solid #f0e2d6;
}

.jsc-reviews__inner { max-width: 1180px; margin: 0 auto; }

.jsc-reviews__head { text-align: center; max-width: 660px; margin: 0 auto clamp(38px, 5vw, 58px); }

.jsc-eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e8763b;
  margin-bottom: 14px;
}

.jsc-reviews__head h2 {
  margin: 0 0 14px;
  color: #2b1f1a;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.jsc-reviews__head p {
  margin: 0;
  color: #6a5b52;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}

/* ---- quote cards ---- */
.jsc-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.jsc-review {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid #f0e2d6;
  border-radius: 18px;
  padding: 30px 28px 28px;
  box-shadow: 0 10px 30px rgba(120, 80, 40, .07);
  transition: transform .28s ease, box-shadow .28s ease;
}

.jsc-review::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.2rem;
  line-height: 1;
  color: rgba(232, 118, 59, .16);
  pointer-events: none;
}

.jsc-review blockquote {
  margin: 0;
  color: #4a3b34;
  font-size: 1rem;
  line-height: 1.72;
  quotes: none;
}

.jsc-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.jsc-stars svg { width: 17px; height: 17px; fill: #f0a04b; flex: none; }

/* ---- photo strip ---- */
.jsc-faces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: clamp(34px, 4vw, 50px);
}

.jsc-faces img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(120, 80, 40, .12);
  transition: transform .28s ease, box-shadow .28s ease;
}

/* ---- buttons ---- */
.jsc-reviews__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 48px);
}

.jsc-btn {
  display: inline-block;
  padding: 15px 32px;
  background: #e8763b;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232, 118, 59, .28);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.jsc-btn--ghost {
  background: #fff;
  color: #6a5b52 !important;
  border: 1px solid #e8ded4;
  box-shadow: none;
}

/* ---- motion ---------------------------------------------------------------
   .jsc-reveal is the resting (visible) state. The script adds .jsc-armed on
   load, which hides the element, then .jsc-in as it scrolls into view. Ordering
   it this way means no-JS and script-error cases both leave content visible. */
.jsc-reveal.jsc-armed {
  opacity: 0;
  transform: translateY(18px);
}

.jsc-reveal.jsc-armed.jsc-in {
  opacity: 1;
  transform: none;
  transition: opacity .62s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms),
              transform .62s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms);
}

@media (hover: hover) {
  .jsc-review:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(120, 80, 40, .13);
  }
  .jsc-faces img:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 26px rgba(120, 80, 40, .2);
  }
  .jsc-btn:hover { transform: translateY(-2px); background: #d2652c; }
  .jsc-btn--ghost:hover { background: #fff6f0; color: #e8763b !important; }

  /* the existing puppy cards, given the same restraint */
  .cc-home-card, .cc-puppy-card { transition: transform .28s ease, box-shadow .28s ease; }
  .cc-home-card:hover, .cc-puppy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(120, 80, 40, .14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jsc-reveal.jsc-armed,
  .jsc-reveal.jsc-armed.jsc-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .jsc-review, .jsc-faces img, .jsc-btn, .cc-home-card, .cc-puppy-card { transition: none !important; }
  .jsc-review:hover, .jsc-faces img:hover, .jsc-btn:hover,
  .cc-home-card:hover, .cc-puppy-card:hover { transform: none !important; }
}
