/* ============================================
   TESTIMONIALS PAGE - PROFESSIONAL DESIGN
   Crew-style with premium feel
   ============================================ */

/* --- HERO SECTION --- */
.testimonials-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 50%, #ffffff 100%);
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.testimonials-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,106,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,102,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(124,58,237,0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.testimonials-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.crew-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.2);
  color: #FF6A00;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.testimonials-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #0d1b3e;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.testimonials-hero h1 .highlight {
  background: linear-gradient(90deg, #FF6A00, #FF9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials-hero p {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #556;
}

/* Hero Stats */
.testimonials-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.testimonials-stat-item {
  text-align: center;
}

.testimonials-stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FF6A00;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonials-stat-label {
  font-size: 0.95rem;
  color: #667085;
  font-weight: 500;
}

/* --- FILTER SECTION --- */
.testimonials-filter-section {
  padding: 3rem 0 2rem;
  background: #ffffff;
}

.testimonials-filter-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: #ffffff;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d1b3e;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #FF6A00;
  color: #FF6A00;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #FF6A00 0%, #FFA400 100%);
  border-color: #FF6A00;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
}

/* --- TESTIMONIALS GRID --- */
.testimonials-section {
  padding: 4rem 0 6rem;
  background: #ffffff;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card-full {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Prevents tags from stretching full width */
  height: 100%;
  background: #ffffff;
  border: 2px solid #f0f0f0;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card-full:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card-full:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card-full:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card-full:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card-full:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card-full:nth-child(6) { animation-delay: 0.6s; }
.testimonial-card-full:nth-child(7) { animation-delay: 0.7s; }
.testimonial-card-full:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6A00, #FFA400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.testimonial-card-full:hover {
  border-color: #FF6A00;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 106, 0, 0.15);
}

.testimonial-card-full:hover::before {
  transform: scaleX(1);
}

/* Quote Icon */
.quote-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF6A00 0%, #FFA400 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Stars */
.testimonial-stars-full {
  color: #FFA400;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* Text */
.testimonial-text-full {
  flex-grow: 1;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #556;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Service Badge */
.service-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FF6A00;
  margin-bottom: 1.5rem;
}

/* Footer */
.testimonial-footer-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* Ensure footer spans full width */
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.testimonial-author-full {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar-full {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-meta-full h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b3e;
  margin-bottom: 0.25rem;
}

.testimonial-meta-full p {
  font-size: 0.9rem;
  color: #667085;
  margin: 0;
}

/* Company Logo */
.company-logo-full {
  width: auto;
  max-width: 110px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: 1rem;
}

.company-logo-full img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.testimonial-card-full:hover .company-logo-full img {
  transform: scale(1.05); /* Add a nice hover effect instead of grayscale */
}

.company-logo-placeholder {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #a0a0a0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .testimonials-hero {
    padding: 6rem 0 3rem;
    min-height: 60vh;
  }

  .testimonials-hero h1 {
    font-size: 2.5rem;
  }

  .testimonials-stats {
    gap: 2rem;
  }

  .testimonials-stat-number {
    font-size: 2rem;
  }

  .filter-buttons {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card-full {
  display: flex;
  flex-direction: column;
  height: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .testimonials-hero h1 {
    font-size: 2rem;
  }

  .testimonials-hero p {
    font-size: 1rem;
  }

  .testimonials-container {
    padding: 0 1rem;
  }

  .testimonial-footer-full {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .company-logo-full {
    align-self: flex-end;
  }
}

/* --- LOADING STATE --- */
.testimonials-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #667085;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #0d1b3e;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 1.05rem;
}

/* --- ACCESSIBILITY --- */
.testimonial-card-full:focus-within {
  outline: 3px solid #FF6A00;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card-full,
  .filter-btn {
    animation: none;
    transition: none;
  }
}

/* --- PRINT STYLES --- */
@media print {
  .testimonials-hero {
    background: #ffffff;
    min-height: auto;
    padding: 2rem 0;
  }

  .testimonials-filter-section {
    display: none;
  }

  .testimonial-card-full {
  display: flex;
  flex-direction: column;
  height: 100%;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Made with Bob */


.company-logo-placeholder svg {
  width: 140px;
  height: 35px;
  transition: all 0.3s ease;
}

.testimonial-card-full:hover .company-logo-placeholder svg {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.testimonial-footer-full .company-logo-circle {
  margin-left: auto;
  flex-shrink: 0;
}
