/* Splide provides the loop and drag behavior; static content stays visible without JS. */
.pet-gallery { padding:52px 0 28px; background:#fff; }
.gallery-heading { display:flex; justify-content:space-between; align-items:center; padding:0 12px 24px; }
.gallery-heading h2 { color:var(--heading); font-size:24px; line-height:36px; }
.gallery-heading p { color:var(--muted); font-size:13px; line-height:22px; margin-top:5px; }
.gallery-toggle { display:flex; align-items:center; gap:8px; padding:9px 16px; border:0; border-radius:24px; background:#f4f6f0; color:var(--accent-dark); font:inherit; font-size:13px; }
.gallery-toggle:disabled { display:none; }
.gallery-toggle:hover { background:#eaf1e4; }
.gallery-toggle .play-icon { display:none; }
.gallery-toggle[aria-pressed="true"] .pause-icon { display:none; }
.gallery-toggle[aria-pressed="true"] .play-icon { display:block; }
.pet-gallery .splide__slide { width:320px; flex:none; }
.pet-gallery .splide__slide a { display:block; position:relative; height:260px; overflow:hidden; border-radius:18px; background:#faf9f5; }
.pet-gallery .splide__slide img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.pet-gallery .splide__slide a:hover img { transform:scale(1.035); }
.pet-gallery .splide__slide a:focus-visible { outline-offset:-5px; }
.pet-gallery .splide__slide span { position:absolute; bottom:14px; left:16px; border-radius:18px; padding:5px 12px; background:#fffffff0; color:#64715b; font-size:12px; line-height:20px; }
.pet-gallery .splide__track { cursor:grab; }
.pet-gallery .splide__track:active { cursor:grabbing; }
.pet-gallery .splide__list { gap:0; }
.pet-gallery .splide:not(.is-initialized) .splide__list { gap:18px; }
.pet-gallery .splide,.testimonials .splide { visibility:visible; }
.splide:not(.is-initialized) .splide__track { overflow-x:auto; }

.testimonials { position:relative; padding:58px 0 36px; margin-top:40px; overflow:hidden; background:#fff; }
.testimonials-heading { text-align:center; margin-bottom:12px; }
#gallery-title,#reviews-title { scroll-margin-top:130px; }
.testimonials-heading h2 { font-size:32px; line-height:46px; color:var(--heading); font-weight:bold; }
.testimonials-heading p { margin-top:6px; color:var(--muted); font-size:13px; letter-spacing:1px; line-height:24px; }
.testimonials .splide__track { padding-top:48px; padding-bottom:45px; }
.testimonials .splide__slide { width:310px; flex:none; position:relative; z-index:1; }
.review-card { height:316px; margin:0; padding:28px 27px 24px; display:flex; flex-direction:column; background:#fbfaf7; border-radius:22px 22px 32px 22px; box-shadow:0 0 0 1px #ebece5 inset,0 8px 24px #68755b06; transform:translateY(14px) rotate(-3deg) scale(.95); transform-origin:center; transition:transform .65s cubic-bezier(.22,.75,.25,1),background-color .65s,box-shadow .65s; }
.splide__slide[data-review-side="right"] .review-card { transform:translateY(14px) rotate(3deg) scale(.95); }
.testimonials .splide__slide.is-active { z-index:3; }
.testimonials .splide__slide.is-active .review-card { background:#eaf1e4; box-shadow:0 14px 34px #65785012; transform:translateY(-12px) rotate(0) scale(1.04); }
.review-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.review-top img { width:48px; height:48px; border-radius:50%; object-fit:cover; background:#fff; }
.review-quote { color:#a8ba95; font-size:48px; font-family:Georgia,serif; height:44px; line-height:60px; }
.review-card blockquote { padding:0; margin:0; font-size:16px; line-height:1.9; color:#52604b; }
.review-card figcaption { margin-top:auto; padding-top:20px; font-size:13px; line-height:22px; color:#7a8473; }
.review-card figcaption span { display:block; font-size:11px; color:#93998c; margin-top:2px; }
.review-controls { display:flex; justify-content:center; align-items:center; gap:14px; padding-top:2px; }
.review-controls .splide__arrow { display:grid; place-items:center; width:42px; height:42px; border:0; border-radius:50%; color:var(--accent-dark); background:#f2f5ee; transition:background-color .25s,transform .25s; }
.review-controls .splide__arrow:hover { background:#e5eedc; transform:translateY(-2px); }
.review-controls .splide__arrow svg { width:18px; height:18px; fill:none; }
.review-position { width:44px; text-align:center; color:#8a9383; font-size:12px; letter-spacing:2px; }
.review-note { text-align:center; margin-top:20px; font-size:11px; color:#9a9e92; line-height:20px; }
.testimonials .splide:not(.is-initialized) .splide__list { gap:20px; justify-content:center; }
.testimonials .splide:not(.is-initialized) .review-controls { display:none; }
@media(prefers-reduced-motion:reduce) {
  .pet-gallery .splide__slide img,.review-card,.review-controls .splide__arrow { transition:none; }
}
