/* Client stories - trionn-style: client list as navigation on the left, one
   featured quote on the right, circular prev/next controls + counter.
   Replaces the old Testimonial block; also hides About Me, Awards, Pricing.
   Behaviour in assets/js/reviews.js. */


#tw-reviews {
  --rv-bg: #efeeec;
  --rv-ink: #1a1a1a;
  --rv-ink-soft: #8a8a86;
  --rv-green: var(--accent);        /* #35E07F — for FILLS (buttons, dot) */
  --rv-green-ink: var(--accent-ink); /* #00944F — for small green TEXT/icons on this light bg */
  --rv-line: rgba(0, 0, 0, 0.16);
  --rv-mono: Figtree, "Figtree Fallback", system-ui, sans-serif;
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--rv-bg);
  color: var(--rv-ink);
  font-family: "Figtree", "Figtree Placeholder", sans-serif;
  padding: 14vh 6vw 13vh;
}
:where(#tw-reviews *) { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- header: heading left, sub right ---- */
.rv-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 4vw;
}
.rv-heading {
  font-size: clamp(44px, 5.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #121212;
}
.rv-sub {
  max-width: 26ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--rv-ink-soft);
  padding-top: 1.2em;
}

/* ---- divider with center + ---- */
.rv-rule {
  position: relative;
  height: 1px;
  background: var(--rv-line);
  margin: 8vh 0 9vh;
}
.rv-rule::after {
  content: "+";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--rv-mono);
  font-size: 15px;
  color: var(--rv-ink-soft);
  background: var(--rv-bg);
  padding: 0 0.5em;
}

/* ---- body: client list nav left, quote right ---- */
.rv-body {
  display: grid;
  grid-template-columns: minmax(220px, 30%) 1fr;
  gap: 5vw;
  min-height: 44vh;
}
.rv-nav { display: flex; flex-direction: column; gap: 1.4em; align-items: flex-start; }
.rv-nav-item {
  font-family: var(--rv-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0;
  transition: color 0.35s ease;
}
.rv-nav-item:hover { color: var(--rv-ink); }
.rv-nav-item .rv-nav-arrow {
  color: var(--rv-green-ink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.rv-nav-item.rv-active { color: var(--rv-ink); }
.rv-nav-item.rv-active .rv-nav-arrow { opacity: 1; transform: none; }

.rv-quotewrap { max-width: 68ch; margin-left: 7vw; }
/* all five reviews ship in the markup; only the current one is shown */
.rv-slide[hidden] { display: none; }
.rv-quote {
  font-size: clamp(24px, 2.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.rv-person {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 6vh;
}
.rv-avatar {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(53, 224, 127, 0.13);
  color: var(--rv-green-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rv-mono);
  font-size: 16px;
  font-weight: 600;
}
/* photo/brand avatar variant: image fills the circle instead of initials */
.rv-avatar.rv-avatar-img { background: none; overflow: hidden; }
.rv-avatar.rv-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-name { font-size: 16px; font-weight: 600; }
.rv-role {
  margin-top: 0.35rem;
  font-family: var(--rv-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rv-ink-soft);
}
.rv-stars { color: var(--rv-green-ink); font-size: 13px; letter-spacing: 0.12em; margin-bottom: 2.6vh; }

/* ---- bottom controls ---- */
.rv-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 9vh;
}
.rv-arrows { display: flex; align-items: center; gap: 1.2rem; }
.rv-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.28);
  background: transparent;
  color: var(--rv-ink);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.rv-btn:hover {
  background: var(--rv-green);
  border-color: var(--rv-green);
  color: #ffffff;
  transform: scale(1.06);
}
.rv-count {
  font-family: var(--rv-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--rv-ink-soft);
}
.rv-count .rv-cur { color: var(--rv-ink); }
.rv-cta {
  font-family: var(--rv-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1.6em;
  padding-bottom: 0.8em;
  position: relative;
  white-space: nowrap;
}
.rv-cta::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rv-green);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.rv-cta:hover::after { transform: scaleX(0.35); }
.rv-cta .rv-cta-arrow { color: var(--rv-green-ink); transition: transform 0.45s cubic-bezier(0.19,1,0.22,1); }
.rv-cta:hover .rv-cta-arrow { transform: translateX(7px); }

/* reveal */
.rv-top, .rv-rule, .rv-body, .rv-controls {
  opacity: 0;
  transition: opacity 0.8s ease;
}
#tw-reviews.rv-in .rv-top, #tw-reviews.rv-in .rv-rule,
#tw-reviews.rv-in .rv-body, #tw-reviews.rv-in .rv-controls { opacity: 1; }
#tw-reviews.rv-in .rv-rule { transition-delay: 0.1s; }
#tw-reviews.rv-in .rv-body { transition-delay: 0.2s; }
#tw-reviews.rv-in .rv-controls { transition-delay: 0.3s; }

@media (max-width: 900px) {
  #tw-reviews { padding: 12vh 7vw 12vh; }
  .rv-top { grid-template-columns: 1fr; gap: 2vh; }
  .rv-sub { padding-top: 0; }
  .rv-body { grid-template-columns: 1fr; gap: 5vh; min-height: 0; }
  .rv-nav { flex-direction: row; flex-wrap: wrap; gap: 1em 1.6em; }
  .rv-controls { flex-wrap: wrap; }
}
