/* ── testimonials.css — Testimonials & Social Proof Showcase ── */

#testimonials-section {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 52px;
  z-index: 20;
  box-sizing: border-box;
  scroll-margin-top: 70px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}


/* ── Split Layout: Left Info / Right 2x2 Grid ── */
.testimonials-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* ── Left Column: Headline, Bio & CTA ── */
.testi-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: auto;
}

.testi-top-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testi-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all .2s ease;
  margin-bottom: 24px;
  cursor: default;
}

.testi-badge-pill:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

body.dark .testi-badge-pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2ede8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .testi-badge-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(0, 255, 165, 0.4);
  box-shadow: 0 4px 16px rgba(0, 255, 165, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.lang-ar .testi-badge-pill,
html[lang="ar"] .testi-badge-pill {
  font-family: var(--pf-text-face), 'Thmanyah Serif Text', 'Thmanyah Sans', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0;
}

.testi-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(2.3rem, 3.8vw, 3.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin-bottom: 18px;
}

body.lang-ar .testi-title {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  letter-spacing: normal;
  line-height: 1.3;
}

.testi-desc {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink-2);
  opacity: 0.88;
  max-width: 380px;
  margin-bottom: 30px;
}

.testi-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.testi-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.32);
  background: #1e293b;
}

body.dark .testi-cta-btn {
  background: #ffffff;
  color: #030504;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

body.dark .testi-cta-btn:hover {
  background: #00ffa5;
  color: #030504;
  box-shadow: 0 6px 26px rgba(0, 255, 165, 0.4);
}

/* ── Featured In Logos Row ── */
.testi-featured-wrap {
  margin-top: 52px;
  width: 100%;
}

.testi-featured-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

body.dark .testi-featured-label {
  color: #64748b;
}

.testi-logos-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.testi-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  opacity: 0.8;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

.testi-logo-item:hover {
  opacity: 1;
}

.testi-logo-item svg {
  display: block;
  flex-shrink: 0;
}

/* ── Right Column: 2x2 Bento Testimonials Grid ── */
.testi-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  width: 100%;
}

/* ── Outer Base Container ── */
.testi-card {
  position: relative;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  padding: 0 0 14px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.testi-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.08), inset 0 1px 1px #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

body.dark .testi-card {
  background: rgba(22, 28, 25, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .testi-card:hover {
  transform: translateY(-5px);
  background: rgba(22, 28, 25, 0.6);
  border-color: rgba(0, 255, 165, 0.35);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 255, 165, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── Floating Upper Card (Bubble) ── */
.testi-bubble {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 1px #ffffff;
  padding: 22px 20px 24px;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark .testi-bubble {
  background: rgba(13, 18, 16, 0.65);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.testi-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.testi-star-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

.testi-rating-label {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.85rem;
}

.testi-quote-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Author Info at Bottom ── */
.testi-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 2px;
  box-sizing: border-box;
}

.testi-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

body.dark .testi-author-avatar {
  border-color: rgba(255, 255, 255, 0.15);
}

.testi-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testi-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.testi-author-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.testi-author-link:hover .testi-author-name {
  color: #e1306c;
}

.testi-insta-icon {
  opacity: 0.55;
  color: var(--ink-2);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.testi-author-link:hover .testi-insta-icon {
  opacity: 1;
  color: #e1306c;
  transform: scale(1.15);
}

.testi-author-role {
  font-size: 0.82rem;
  color: var(--ink-2);
  opacity: 0.85;
  line-height: 1.2;
}

/* ── Responsive Adaptations ── */
@media (max-width: 1024px) {
  .testimonials-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .testi-info-col {
    align-items: center;
    text-align: center;
    min-height: auto;
  }
  .testi-top-group {
    align-items: center;
  }
  .testi-desc {
    max-width: 520px;
  }
  .testi-featured-wrap {
    margin-top: 36px;
  }
  .testi-logos-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  #testimonials-section {
    padding: 60px 16px 80px;
  }
  .testi-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .testi-title {
    font-size: 2.1rem;
  }
  .testi-bubble {
    min-height: auto;
    padding: 18px 16px 20px;
  }
}
