/* ==========================================================================
   testimonials.css — Testimonials Page Styles
   A Perfect Choice Home Care WordPress Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   Testimonials Intro
   -------------------------------------------------------------------------- */
.apch-testimonials-intro {
  padding: 60px 0;
  background: var(--white);
  text-align: center;
}
.apch-testimonials-intro p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Testimonials Stats Bar
   -------------------------------------------------------------------------- */
.apch-testimonials-stats {
  padding: 56px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.apch-testimonials-stats::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 74, 63, 0.1), transparent 70%);
  pointer-events: none;
}
.apch-testimonials-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.apch-testimonials-stat {
  padding: 20px 16px;
  position: relative;
}
.apch-testimonials-stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}
.apch-testimonials-stat:last-child::after {
  display: none;
}
.apch-testimonials-stat-number {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--coral);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.apch-testimonials-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .apch-testimonials-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .apch-testimonials-stat::after {
    display: none;
  }
  .apch-testimonials-stat {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* --------------------------------------------------------------------------
   Featured Testimonial
   -------------------------------------------------------------------------- */
.apch-testimonials-featured {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
}
.apch-testimonials-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 74, 63, 0.03) 0%, transparent 60%);
  pointer-events: none;
}
.apch-testimonials-featured-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 48px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow:
    0 2px 8px rgba(27, 43, 75, 0.03),
    0 8px 24px rgba(27, 43, 75, 0.05);
}
.apch-testimonials-featured-inner::before {
  content: '\201C';
  font-family: 'Lora', serif;
  font-size: 160px;
  color: var(--coral);
  opacity: 0.08;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}
.apch-testimonials-featured-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--star);
  font-size: 24px;
  position: relative;
  z-index: 1;
}
.apch-testimonials-featured-text {
  font-family: 'Lora', serif;
  font-size: clamp(19px, 2.5vw, 26px);
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.apch-testimonials-featured-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.apch-testimonials-featured-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.15);
}
.apch-testimonials-featured-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.apch-testimonials-featured-role {
  font-size: 14px;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .apch-testimonials-featured {
    padding: 60px 0;
  }
  .apch-testimonials-featured-inner {
    padding: 36px 24px;
  }
}

/* --------------------------------------------------------------------------
   Testimonials Grid
   -------------------------------------------------------------------------- */
.apch-testimonials-grid-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}
.apch-testimonials-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196, 74, 63, 0.02) 0%, transparent 50%);
  pointer-events: none;
}
.apch-testimonials-grid-header {
  text-align: center;
  margin-bottom: 56px;
}
.apch-testimonials-grid-header .apch-section-label {
  justify-content: center;
}
.apch-testimonials-grid-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}
.apch-testimonials-grid-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Tabs */
.apch-testimonials-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.apch-testimonials-filter {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-testimonials-filter:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 43, 75, 0.15);
}
.apch-testimonials-filter.active {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
  box-shadow: 0 4px 12px rgba(196, 74, 63, 0.25);
}

/* Grid */
.apch-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.apch-testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27, 43, 75, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.apch-testimonial-card::before {
  content: '\201C';
  font-family: 'Lora', serif;
  font-size: 72px;
  color: var(--coral);
  opacity: 0.1;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
  transition: opacity 0.3s ease;
}
.apch-testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--sage));
  opacity: 0.25;
  transition: opacity 0.4s ease;
}
.apch-testimonial-card:hover {
  transform: translateY(-8px);
  background: var(--white);
  border-color: transparent;
  box-shadow:
    0 4px 6px rgba(27, 43, 75, 0.03),
    0 10px 24px rgba(27, 43, 75, 0.06),
    0 24px 48px rgba(27, 43, 75, 0.05);
}
.apch-testimonial-card:hover::before {
  opacity: 0.18;
}
.apch-testimonial-card:hover::after {
  opacity: 1;
}
.apch-testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--star);
  font-size: 17px;
  filter: drop-shadow(0 1px 2px rgba(243, 156, 18, 0.3));
}
.apch-testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.apch-testimonial-service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.apch-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.apch-testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(27, 43, 75, 0.12);
  transition: transform 0.3s ease;
}
.apch-testimonial-card:hover .apch-testimonial-avatar {
  transform: scale(1.06);
}
.apch-testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.apch-testimonial-role {
  font-size: 13px;
  color: var(--text-light);
}
.apch-testimonial-location {
  font-size: 12px;
  color: var(--text-lighter);
}

/* Load More */
.apch-testimonials-load-more {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .apch-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apch-testimonials-grid-section {
    padding: 80px 0;
  }
}
@media (max-width: 600px) {
  .apch-testimonials-grid {
    grid-template-columns: 1fr;
  }
  .apch-testimonials-grid-section {
    padding: 60px 0;
  }
}

/* --------------------------------------------------------------------------
   Google Reviews CTA
   -------------------------------------------------------------------------- */
.apch-testimonials-review-cta {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.apch-testimonials-review-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(27, 43, 75, 0.03);
}
.apch-testimonials-review-cta-inner:hover {
  box-shadow:
    0 4px 12px rgba(27, 43, 75, 0.04),
    0 12px 32px rgba(27, 43, 75, 0.06);
  transform: translateY(-4px);
}
.apch-testimonials-review-cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--coral);
  font-size: 30px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apch-testimonials-review-cta-inner:hover .apch-testimonials-review-cta-icon {
  transform: scale(1.1);
}
.apch-testimonials-review-cta-inner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.apch-testimonials-review-cta-inner p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .apch-testimonials-review-cta {
    padding: 60px 0;
  }
  .apch-testimonials-review-cta-inner {
    padding: 32px 24px;
  }
}
