/* ==========================================================
   NATURAL ASILIA — TESTIMONIALS PAGE STYLES
   Brand color: #652b7b
   ========================================================== */

:root {
  --brand: #652b7b;
  --brand-dark: #4b1f5c;
  --brand-light: #f4ecf7;
  --brand-soft: rgba(101, 43, 123, 0.08);
}

/* ---------- HERO ---------- */
.testi-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}

.testi-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.testi-hero p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.6;
}

/* ---------- RATING SUMMARY STRIP ---------- */
.testi-summary {
  background: #fff;
  border: 1px solid var(--brand-soft);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(101, 43, 123, 0.08);
  padding: 28px 30px;
  margin-top: -40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.summary-score {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--brand);
  line-height: 1;
}

.summary-score span {
  font-size: 1.1rem;
  font-weight: 500;
  color: #8a8a8a;
}

.summary-stars {
  color: #f5b301;
  font-size: 1.1rem;
  margin: 8px 0 4px;
}

.summary-count {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #777;
}

.summary-text {
  font-family: 'Poppins', sans-serif;
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- TRUST SECTION: IMAGE + TEXT (two columns, all screens) ---------- */
.testi-trust-row {
  padding: 10px 0;
}

.testi-round-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 4px solid var(--brand-light);
  box-shadow: 0 18px 40px rgba(101, 43, 123, 0.18);
}

.testi-round-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 3px var(--brand) inset;
  opacity: 0.15;
  pointer-events: none;
}

.testi-round-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- TESTIMONIALS GRID ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--brand-soft);
  border-radius: 16px;
  padding: 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(101, 43, 123, 0.14);
}

.testi-quote-icon {
  color: var(--brand-soft);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.testi-quote-icon i {
  color: var(--brand);
  opacity: 0.25;
}

.testi-stars {
  color: #f5b301;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.testi-text {
  font-family: 'Poppins', sans-serif;
  color: #444;
  font-size: 0.98rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 22px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f0e6f5;
  padding-top: 16px;
}

.testi-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--brand-soft);
}

.testi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-person-info h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.testi-person-info span {
  font-size: 0.8rem;
  color: #888;
}

/* ---------- CTA ---------- */
.testi-cta {
  background: var(--brand-light);
  border-radius: 18px;
  text-align: center;
  padding: 50px 24px;
}

.testi-cta h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.testi-cta p {
  font-family: 'Poppins', sans-serif;
  color: #555;
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.testi-cta .btn-brand {
  background: var(--brand);
  border-color: var(--brand);
}

.testi-cta .btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */
@media (max-width: 991.98px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-hero h1 {
    font-size: 2rem;
  }
}

/* ==========================================================
   RESPONSIVE — MOBILE / ANDROID PHONES
   Ensures single-column stacking, comfortable tap targets,
   and no horizontal overflow on narrow Android viewports.
   ========================================================== */
@media (max-width: 575.98px) {
  .testi-hero {
    padding: 52px 0 46px;
  }

  .testi-hero h1 {
    font-size: 1.6rem;
    padding: 0 8px;
  }

  .testi-hero p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .testi-summary {
    margin-top: -28px;
    padding: 22px 18px;
    text-align: center;
  }

  .testi-trust-row {
    text-align: left;
  }

  .testi-trust-row .eyebrow {
    font-size: 0.75rem;
  }

  .testi-trust-row .section-title {
    font-size: 1.2rem;
  }

  .testi-trust-row .lead-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .testi-trust-row .testi-trust-extra {
    display: none;
  }

  .summary-score {
    font-size: 2.2rem;
  }

  .testi-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .testi-card {
    padding: 22px 20px;
  }

  .testi-cta {
    padding: 38px 18px;
  }

  .testi-cta h3 {
    font-size: 1.35rem;
  }
}

/* Extra-small Android widths (e.g. 320px–360px devices) */
@media (max-width: 360px) {
  .testi-hero h1 {
    font-size: 1.4rem;
  }

  .summary-score {
    font-size: 1.9rem;
  }

  .testi-text {
    font-size: 0.92rem;
  }

  .testi-trust-row .section-title {
    font-size: 1.05rem;
  }

  .testi-trust-row .lead-text {
    font-size: 0.8rem;
  }
}