/* ==========================================================================
   Vantage Point Acupuncture - extra stylesheet
   This file replaces small behaviours that used to be handled by JavaScript
   frameworks. Safe to edit. Loaded on every page after the main stylesheets.
   ========================================================================== */

/* ----- Animate-on-scroll fallback ---------------------------------------
   Elements with data-aos start hidden. assets/js/site.js adds the class
   .aos-animate when the element scrolls into view, which makes it appear. */
[data-aos] {
  transition-property: opacity, transform, clip-path;
  transition-duration: 0.8s;
  transition-timing-function: ease-in-out;
}

/* ----- Testimonial slider (home page) -----------------------------------
   The cards live inside .keen-slider. We turn it into a swipeable row.
   3 cards on desktop, 2 on tablet, 1 on mobile. */
.keen-slider {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.keen-slider::-webkit-scrollbar { display: none; }
.keen-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  overflow: visible !important;
}
@media (min-width: 768px) {
  .keen-slider__slide { flex: 0 0 calc(50% - 12px); }
}
@media (min-width: 1024px) {
  .keen-slider__slide { flex: 0 0 calc(33.333% - 16px); }
}

/* ----- Gallery lightbox --------------------------------------------------
   Simple full-screen image viewer used on the Gallery page. */
.vp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.vp-lightbox.is-open { display: flex; }
.vp-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.vp-lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.vp-lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.vp-lightbox .vp-lb-close { top: 20px; right: 20px; }
.vp-lightbox .vp-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.vp-lightbox .vp-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ----- FAQ accordion -----------------------------------------------------
   Answers are collapsed by default; site.js toggles .vp-open on the wrapper. */
.vp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.vp-open .vp-faq-answer { max-height: 400px; margin-top: 0.5rem; }
