/* ========================================
   TESTIMONIALS BLOCK
   Client and model reviews with star ratings
   Customizable background via color picker
   ======================================== */

.testimonials-block {
  /* Background set inline via ACF color picker */
	padding-bottom:var(--space-48)
}

/* Section Heading (Centered) */
.testimonials-heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #222222;
  text-align: center;
  margin: 0 0 48px 0;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ----------------------------------------
   Individual Testimonial Card
   ---------------------------------------- */
.testimonial-card {
  background: white;
  padding:var(--space-12);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

/* Reviewer Info */
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}

/* Reviewer Avatar */
.reviewer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #F0F0F0;
}

.reviewer-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3B85, #FF74A9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Reviewer Details */
.reviewer-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.reviewer-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #222222;
  margin: 0;
  word-break: break-word;
}

.reviewer-title {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #666666;
  margin: 0;
  word-break: break-word;
}

/* Type Badge */
.testimonial-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
  flex-shrink: 0;
}

.testimonial-client .testimonial-badge {
  background: #E3F2FD;
  color: #1976D2;
}

.testimonial-model .testimonial-badge {
  background: #FCE4EC;
  color: #C2185B;
}

/* ----------------------------------------
   Star Rating
   ---------------------------------------- */
.star-rating {
  display: flex;
  gap: 4px;
}

.star {
  font-size: 18px;
  line-height: 1;
}

.star-filled {
  color: #FFB400;
}

.star-empty {
  color: #E0E0E0;
}

/* Review Date */
.review-date {
  font-size: 12px;
  font-weight: 400;
  color: #999999;
  margin: 0;
}

/* Testimonial Text */
.testimonial-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #555555;
  margin: 0;
  max-height: 85px;      /* visible height */
  overflow-y: auto;      /* enable vertical scroll */
  padding-right: 6px;    /* space for scrollbar */
}
/* Scrollbar styling (Chrome, Edge, Safari) */
.testimonial-text::-webkit-scrollbar {
  width: 6px;
}

.testimonial-text::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

/* ----------------------------------------
   Preview Message (Editor Only)
   ---------------------------------------- */
.preview-message {
  padding: 40px 20px;
  text-align: center;
  background: white;
  border: 2px dashed #ccc;
  color: #666;
  font-size: 16px;
  border-radius: 8px;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonials-heading {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.testimonial-card {
  animation: fadeInUp 0.6s ease both;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.4s; }
.testimonial-card:nth-child(4) { animation-delay: 0.5s; }
.testimonial-card:nth-child(5) { animation-delay: 0.6s; }
.testimonial-card:nth-child(6) { animation-delay: 0.7s; }


.testimonials-footer{
	text-align:right;
	padding-top:var(--space-32);
	@media (max-width: 767px){
		text-align:center;
	padding-top:var(--space-16);
	}
}
.testimonials-footer a{
    color: var(--color-brand-primary);
	
}

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
  .testimonials-grid {
    gap: 28px;
  }
}

/* Tablet Large (1024px - 1199px) */
@media (max-width: 1199px) {
  .testimonials-block {
/*     padding: 60px 0; */
  }
  .reviewer-info{
    flex-direction: column;
    align-items: flex-start;
  }
  .testimonials-heading {
    font-size: 32px;
    margin-bottom: 50px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .testimonials-block {
/*     padding: 50px 0; */
  }
  
  .testimonials-heading {
    font-size: 28px;
    margin-bottom: 40px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 24px 20px;
  }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) {
  .testimonials-block {
/*     padding: 40px 0; */
  }
  
  .testimonials-heading {
    font-size: 26px;
    margin-bottom: 32px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 20px 18px;
  }
  
  .reviewer-avatar,
  .reviewer-avatar-placeholder {
    width: 50px;
    height: 50px;
  }
  
  .reviewer-name {
    font-size: 15px;
  }
  
  .reviewer-title {
    font-size: 12px;
  }
  
  .testimonial-text {
    font-size: 13px;
  }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
  .testimonials-block {
/*     padding: 32px 0; */
  }
  
  .testimonials-heading {
    font-size: 24px;
  }
  
  .testimonials-grid {
    gap: 16px;
  }
  
  .testimonial-card {
    padding: 18px 16px;
  }
  
  .reviewer-avatar,
  .reviewer-avatar-placeholder {
    width: 45px;
    height: 45px;
  }
  
  .reviewer-avatar-placeholder {
    font-size: 20px;
  }
}

/* ----------------------------------------
   Accessibility
   ---------------------------------------- */
.testimonial-card:focus-within {
  outline: 3px solid #FF3B85;
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .testimonials-heading,
  .testimonial-card {
    animation: none;
  }
  
  .testimonial-card,
  .testimonial-card:hover {
    transition: none;
    transform: none;
  }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
  .testimonials-block {
    padding: 20px 0;
    background: white !important;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ----------------------------------------
   Gutenberg Editor Styles
   ---------------------------------------- */
.block-editor-block-list__block[data-type="acf/testimonials"] {
  margin: 20px 0;
}
