/* =========================================================================
   SAV Reusable Blocks — global enqueue, used across the site
   - .sav-team-quote   = Primo team commentary (Kelly/Raphael/Clara) + CTA
   - .sav-client-review = Real client review (Bel/Linh/etc.) with stars + source
   Tokens inherited from products-page.css when loaded; otherwise self-fallback.
   ========================================================================= */

:root {
  --sav-brand:       #004466;
  --sav-brand-light: #0A5F86;
  --sav-accent:      #F59E0B;
  --sav-ink-900:     #0F172A;
  --sav-ink-700:     #334155;
  --sav-ink-500:     #64748B;
  --sav-ink-100:     #E2E8F0;
  --sav-radius:      10px;
}

/* ====================================================================== */
/* TEAM QUOTE — Primo team expert (Kelly, Raphael, Clara) with CTA        */
/* ====================================================================== */

.sav-team-quote {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 12px;
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
}

.sav-team-quote-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--sav-brand) 0%, var(--sav-brand-light) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 8px 24px rgba(0, 68, 102, 0.18);
  position: relative;
  overflow: hidden;
}

.sav-team-quote-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.sav-team-quote .sav-team-photo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 1;
}

.sav-team-quote .sav-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sav-team-quote .sav-team-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.sav-team-quote blockquote {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  font-weight: 500;
}

.sav-team-quote blockquote a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #fff;
  font-style: italic;
  transition: text-decoration-thickness 0.15s ease;
}

.sav-team-quote blockquote a:hover {
  text-decoration-thickness: 2px;
}

.sav-team-quote blockquote::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 0;
  vertical-align: -18px;
  margin-right: 4px;
  font-style: normal;
}

.sav-team-quote .sav-team-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.sav-team-quote .sav-team-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.sav-team-quote .sav-team-role {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.sav-team-quote .sav-team-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--sav-brand);
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Beat Astra's .entry-content a underline at the right specificity (no !important) */
.ast-single-post .entry-content .sav-team-quote .sav-team-cta,
.entry-content .sav-team-quote .sav-team-cta,
.entry-content .sav-team-quote blockquote a,
.ast-single-post .entry-content .sav-team-quote blockquote a {
  text-decoration-color: #fff;
}

.ast-single-post .entry-content .sav-team-quote .sav-team-cta,
.entry-content .sav-team-quote .sav-team-cta {
  text-decoration: none;
}

.sav-team-quote .sav-team-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.sav-team-quote .sav-team-cta span {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {
  .sav-team-quote-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 22px;
    text-align: center;
  }
  .sav-team-quote .sav-team-photo { margin: 0 auto; }
  .sav-team-quote .sav-team-author { align-items: center; }
  .sav-team-quote blockquote { font-size: 15px; }
}

/* ====================================================================== */
/* CLIENT REVIEW — real customer testimonial with stars + source          */
/* ====================================================================== */

.sav-client-review {
  max-width: 720px;
  margin: 32px auto;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--sav-ink-100);
  border-radius: var(--sav-radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
}

.sav-client-review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.sav-client-review .sav-client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sav-ink-100);
}

.sav-client-review .sav-client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sav-client-review .sav-client-meta {
  flex: 1;
  min-width: 0;
}

.sav-client-review .sav-client-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sav-ink-900);
  display: block;
  line-height: 1.2;
}

.sav-client-review .sav-client-company {
  font-size: 12.5px;
  color: var(--sav-ink-500);
  display: block;
  line-height: 1.4;
}

.sav-client-review .sav-client-stars {
  color: var(--sav-accent);
  font-size: 15px;
  letter-spacing: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

.sav-client-review blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sav-ink-700);
  font-style: italic;
}

.sav-client-review .sav-client-source {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--sav-ink-500);
  margin-top: 10px;
  justify-content: flex-end;
}

.sav-client-review .sav-client-source img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
