.reviews-section {
  --bg: #3c3b31;      
  --text: #F4F3EE;    
  --muted: #F4F3EE;
  --accent: #F4F3EE;
  --card-w: min(760px, 92vw);
  --arrow-size: 28px;
  --dot-size: 8px;
  --dot-gap: 8px;
  --dots-mt: 40px;
  background: var(--bg);
  color: var(--text);
  padding: 70px 20px 70px;
}

.reviews-section .reviews-header h2 {
  margin: 0 0 40px;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.25em; 
  text-align: center;
  color: var(--text);
  font-size: 2.2rem; /* Fixed desktop size */
}

.reviews-section .reviews-viewport {
  position: relative;
  max-width: var(--card-w);
  margin: 0 auto;
}

/* Track: one card per “page” */
.reviews-section .reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  gap: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.reviews-section .reviews-track::-webkit-scrollbar { display: none; }
.reviews-section .reviews-track { scrollbar-width: none; }

/* Card styling */
.reviews-section .review-card {
  scroll-snap-align: center;
  display: flex;                 
  flex-direction: column;
  align-items: center;
  justify-content: center;       
  padding: 0 10px;                
  text-align: center;
  background: transparent;
}

/* Review text */
.reviews-section .review-text {
  max-width: 52ch;
  margin: 0 auto 16px;
  line-height: 1.7;
  font-size: clamp(0.95rem, 0.7vw + 0.8rem, 1.05rem);
  color: var(--text);
  opacity: 0.95;
}

/* Author */
.reviews-section .review-author {
  margin: 10px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

/* Arrows */
.reviews-section .reviews-arrow {
  background: none;
  border: none;
  border-radius: 0;
  height: auto;
  width: auto;
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  padding: 0;
  transition: transform 150ms ease, opacity 150ms ease;
}

.reviews-section .reviews-arrow img {
  width: var(--arrow-size);
  height: auto;
  display: block;
  pointer-events: none;
  transition: content 150ms ease;
}

/* Hover effect — swap to orange arrow */
.reviews-section .reviews-arrow.prev:hover img {
  content: url("/images/icons/orange arrow left.png");
}
.reviews-section .reviews-arrow.next:hover img {
  content: url("/images/icons/orange arrow right.png");
}

/* Positioning */
.reviews-section .reviews-arrow.prev { left: -40px; }
.reviews-section .reviews-arrow.next { right: -40px; }

/* Indicators */
.reviews-section .reviews-indicators {
  display:flex;
  justify-content:center;
  gap: var(--dot-gap);
  margin-top: var(--dots-mt);
}

.reviews-section .reviews-indicators button {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  border: 1px solid var(--text);
  background: transparent;
  opacity: .6;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.reviews-section .reviews-indicators button.active {
  background: var(--text);
  opacity: 1;
  transform: scale(1.1);
}

/* ===== Tablet: ≤900px ===== */
@media (max-width: 900px) {
  .reviews-section {
    --arrow-size: 24px;
    --dot-size: 8px;
    --dot-gap: 8px;
    --dots-mt: 30px;
  }
  .reviews-section .reviews-header h2 { font-size: 2rem; margin-bottom: 2rem; }
  .reviews-section .review-card { max-width: 85%; margin: 0 auto; }
  .reviews-section .review-text { font-size: 0.9rem; line-height: 1.6; }
  .reviews-section .review-author { font-size: 0.9rem; }
  .reviews-section .reviews-arrow.prev { left: 6px; }
  .reviews-section .reviews-arrow.next { right: 6px; }
}

/* ===== Small tablets: ≤700px ===== */
@media (max-width: 700px) {
  .reviews-section {
    padding: 50px 16px;
    --arrow-size: 25px;
    --dot-size: 7px;
    --dot-gap: 7px;
    --dots-mt: 30px;
  }
  .reviews-section .review-card { max-width: 80%; }
  .reviews-section .review-text { font-size: 0.85rem; line-height: 1.5; }
  .reviews-section .review-author { font-size: 0.85rem; }
  .reviews-section .reviews-header h2 { font-size: 1.6rem; margin-bottom: 2.5rem; }

  /* Move arrows slightly down */
  .reviews-section .reviews-arrow {
    top: 38%; /* was 30% */
    transform: translateY(-50%);
  }
}

/* ===== Phones: ≤400px ===== */
@media (max-width: 400px) {
  .reviews-section {
    padding: 40px 12px;
    --arrow-size: 22px;
    --dot-size: 6px;
    --dot-gap: 6px;
    --dots-mt: 25px;
  }
  .reviews-section .review-card { max-width: 75%; }
  .reviews-section .review-text { font-size: 0.8rem; line-height: 1.5; }
  .reviews-section .review-author { font-size: 0.8rem; }
  .reviews-section .reviews-header h2 { font-size: 1.6rem; margin-bottom: 2.5rem; }

  /* Move arrows slightly more down */
  .reviews-section .reviews-arrow {
    top: 38%; /* was 30% */
    transform: translateY(-50%);
  }
}

/* left arrow fix*/ 

/* Ensure arrows sit above the scrollable track on touch devices */
.reviews-section .reviews-viewport { position: relative; }

.reviews-section .reviews-track {
  position: relative;   /* create a stacking context for the track */
  z-index: 1;           /* track below arrows */
}

.reviews-section .reviews-arrow {
  z-index: 2;           /* arrows above the track so they can receive taps */
  pointer-events: auto; /* make sure taps are handled by the button */
  touch-action: manipulation; /* improve tap responsiveness on mobile */
  -webkit-tap-highlight-color: transparent; /* nicer iOS tap feel */
}
