/* =======================
   PCFO GALLERY
======================= */

.pcfo-gallery {
  margin-top: 2rem;
  width: 100%;
}

.gallery-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.swipe-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
  width: 100%;
}

.swipe-gallery::-webkit-scrollbar {
  display: none;
}

.swipe-item {
  flex: 0 0 auto;
  width: min(70vw, 320px);
  height: 320px;
  background: #111;
  border-radius: 16px;
  scroll-snap-align: center;
}

.swipe-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0;
  transition: opacity .4s ease;
  cursor: pointer;
}

.swipe-item img.loaded {
  opacity: 1;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--yellow);
  cursor: pointer;
  z-index: 5;
}

.arrow.left { left: -1.5rem; }
.arrow.right { right: -1.5rem; }

@media (max-width: 768px) {
  .arrow { display: none; }
}

.dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .75rem;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
}

.dot.active {
  background: var(--yellow);
}


/* =======================
   LIGHTBOX
======================= */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 99999;
}

#lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }


/* =======================
   PCFO FAQ (WORKING)
======================= */

.pcfo-faq-simple {
  max-width: 800px;
  margin: 4rem auto;
}

.pcfo-faq-simple .faq-toggle {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 10px;
}

.pcfo-faq-simple .faq-list {
  display: none;
  margin-top: 1rem;
}

.pcfo-faq-simple.active .faq-list {
  display: block;
}

.pcfo-faq-simple .faq-q {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.pcfo-faq-simple .faq-q h4 {
  margin-bottom: .4rem;
}


/* =======================
   TESTIMONIALS
======================= */

.pcfo-testimonials {
  max-width: 1000px;
  margin: 5rem auto;
  text-align: center;
}

.pcfo-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pcfo-testimonial {
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-radius: 14px;
}

.pcfo-testimonial span {
  display: block;
  margin-top: .75rem;
  opacity: .7;
  font-size: .9rem;
}
/* =======================
   ROTATING TESTIMONIALS
======================= */

.pcfo-testimonials {
  max-width: 1000px;
  margin: 5rem auto;
  text-align: center;
}

.pcfo-testimonial-grid {
  position: relative;
  min-height: 140px;
}

.pcfo-testimonial {
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-radius: 14px;
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.pcfo-testimonial.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.pcfo-testimonial span {
  display: block;
  margin-top: .75rem;
  opacity: .7;
  font-size: .9rem;
}
.pcfo-testimonial-grid {
  overflow: hidden;
  touch-action: pan-y;
}
.presale {
  position: relative;
}

.presale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: #000;
  padding: .35rem .7rem;
  font-size: .75rem;
  border-radius: 20px;
  font-weight: 600;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
/* =======================
   FAQ ACCORDION
======================= */

.pcfo-faq-simple {
  max-width: 800px;
  margin: 4rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span {
  transition: transform .3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 1.2rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1rem;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}
