/* =============================================
   TESTIMONIALS — UlapTax
   Brand: #ff7704 · #161616 · #fafbfd · Inter
   ============================================= */

.testimonials {
  position: relative;
  padding: 100px 24px;
  background: var(--clr-bg);
  overflow: hidden;
}

.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.testimonials-eyebrow {
  display: inline-block;
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.testimonials-title {
  font-family: var(--ff-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.testimonials-title .accent { color: var(--clr-primary); }
.testimonials-subtext {
  font-family: var(--ff-content);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-ink-muted);
  margin: 0;
}

/* ── Featured pull-quote ── */
.testimonial-feature {
  position: relative;
  margin: 0 0 36px;
  padding: 48px 56px 44px;
  background: linear-gradient(155deg, #ffffff 0%, #fff8f0 65%, #fff2e3 100%);
  border: 1px solid rgba(255, 119, 4, 0.22);
  border-radius: 22px;
  box-shadow: 0 18px 40px -22px rgba(22, 22, 22, 0.18);
  overflow: hidden;
  isolation: isolate;
}
.testimonial-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 119, 4, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 8% 95%, rgba(255, 119, 4, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.testimonial-feature__mark {
  width: 56px;
  height: 56px;
  color: var(--clr-primary);
  opacity: 0.6;
  margin-bottom: 18px;
}
.testimonial-feature__quote {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--clr-black);
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 880px;
}
.testimonial-feature__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Two-up variant for when there are exactly two supporting testimonials */
.testimonials-grid--pair {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 2px 5px -1px rgba(22, 22, 22, 0.04);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px -10px rgba(22, 22, 22, 0.14);
  border-color: rgba(255, 119, 4, 0.4);
}

.testimonial-card--featured {
  background: linear-gradient(155deg, #ffffff 0%, #fff8f0 70%, #fff5eb 100%);
  border-color: rgba(255, 119, 4, 0.25);
}

.testimonial-quote-mark {
  color: var(--clr-primary);
  opacity: 0.25;
  line-height: 0;
}
.testimonial-card--featured .testimonial-quote-mark { opacity: 0.45; }

.testimonial-quote {
  font-family: var(--ff-content);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-black);
  margin: 0;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-white);
  flex-shrink: 0;
}
.testimonial-avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.05rem;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial-meta strong {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-black);
}
.testimonial-meta span {
  font-family: var(--ff-content);
  font-size: 0.78rem;
  color: var(--clr-ink-muted);
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-feature { padding: 40px 40px 36px; }
}
@media (max-width: 768px) {
  .testimonials { padding: 70px 20px; }
  .testimonials-grid,
  .testimonials-grid--pair { grid-template-columns: 1fr; }
  .testimonial-feature { padding: 36px 28px 32px; margin-bottom: 28px; }
  .testimonial-feature__mark { width: 44px; height: 44px; margin-bottom: 12px; }
  .testimonial-feature__quote { margin-bottom: 22px; }
}
@media (max-width: 480px) {
  .testimonials { padding: 60px 16px; }
  .testimonial-card { padding: 24px 22px; }
  .testimonial-feature { padding: 28px 22px; }
}
