/* ============================================================================
   RavenCoreX — Social Proof (v4)
   Reusable, parametrized block: authority stat-strip + testimonial grid.
   Chosen a responsive STATIC GRID over a JS carousel: 2–3 cards per page,
   fully accessible by default, no keyboard trap, no auto-scroll, no JS dep.
   Hard rules kept: radius 0, stroke 1px, no box-shadow on cards, tokens only.
   Compliance: NEVER render dollar amounts or hourly rates. Quotes stay in
   their original language (EN); only UI labels are localized in markup.
   ============================================================================ */

/* Compact section rhythm — denser than a standard section, still premium.
   Overrides rcx-section's 96px desktop padding down to 64px on every breakpoint. */
.rcx-social-proof { padding-block: var(--space-2xl); }
.rcx-social-proof h2 {
  font-size: var(--text-h3);            /* section scale, not hero */
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  max-width: 20ch;
}
.rcx-social-proof__sub { max-width: 56ch; color: var(--color-text-secondary); margin-bottom: 0; }

/* ============================================================================
   STAT-STRIP — authority band, wraps on mobile
   ============================================================================ */
.rcx-stat-strip {
  list-style: none;
  margin: 0;
  padding: var(--space-md) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-md) 0;
  border-top: var(--icon-stroke) solid var(--color-border);
  border-bottom: var(--icon-stroke) solid var(--color-border);
}

.rcx-stat-strip__item {
  flex: 1 1 180px;
  min-width: 150px;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3xs);
  border-left: var(--icon-stroke) solid var(--color-border);
}
.rcx-stat-strip__item:first-child { border-left: 0; padding-left: 0; }

.rcx-stat-strip__value {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-h3);
  line-height: 1.05;
  letter-spacing: var(--tracking-h3);
  color: var(--color-azure-500);
}

.rcx-stat-strip__label {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
  color: var(--color-text-secondary);
}

/* Verified item — icon + text, no big numeral */
.rcx-stat-strip__item--verified { justify-content: center; }
.rcx-stat-strip__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h5);
  line-height: 1.1;
  color: var(--color-text);
}
.rcx-stat-strip__verified .rcx-icon {
  width: 22px; height: 22px; flex: none;
  color: var(--color-success);
}

/* Mobile: 2-up grid, dividers become top borders per row */
@media (max-width: 640px) {
  .rcx-stat-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  .rcx-stat-strip__item {
    border-left: 0;
    padding: 0;
  }
  .rcx-stat-strip__value { font-size: var(--text-h4); }
}

/* ============================================================================
   TESTIMONIAL GRID
   ============================================================================ */
/* ============================================================================
   CAROUSEL — one visible slide at a time, single row that slides.
   Height stays constant: every slide lives in one flex row (align-items:
   stretch), so the row is as tall as the tallest card → no jump on change.
   Behaviour (autoplay, dots, pause, keyboard, reduced-motion) in social-proof.js.
   ============================================================================ */
.rcx-carousel { position: relative; }

.rcx-carousel__viewport { overflow: hidden; }

.rcx-carousel__track {
  display: flex;
  align-items: stretch;                 /* all slides = tallest card height */
  transition: transform var(--duration-page) var(--easing-in-out);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .rcx-carousel__track { transition: none; }
}

/* Each testimonial is one full-width slide — floating/editorial: no box,
   centered content, inline padding so the side arrows never overlap text. */
.rcx-carousel .rcx-testimonial {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  justify-content: center;   /* vertical centering within the equal-height row */
  text-align: center;
  align-items: center;       /* center the flex children (signal, chips, attr) */
  padding: var(--space-sm) var(--space-2xl);
}
@media (min-width: 768px) {
  .rcx-carousel .rcx-testimonial { padding-inline: var(--space-3xl); }
}
.rcx-carousel .rcx-testimonial__signal,
.rcx-carousel .rcx-testimonial__chips { justify-content: center; }
.rcx-carousel .rcx-testimonial__attr  { align-items: center; }

/* Controls: dissolve the wrapper box so arrows position against the carousel;
   dots removed per design. */
.rcx-carousel__controls { display: contents; }
.rcx-carousel__dots { display: none; }

/* Prev / next arrows — flank the slide, vertically centered. Revealed on hover
   (pointer devices) but always usable by keyboard (focus-within), touch and
   reduced-motion users. */
.rcx-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--color-surface);
  border: var(--icon-stroke) solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  cursor: pointer;
  transition: opacity var(--duration-hover) var(--easing-out),
              border-color var(--duration-hover) var(--easing-out),
              color var(--duration-hover) var(--easing-out);
}
.rcx-carousel__arrow--prev { left: 0; }
.rcx-carousel__arrow--next { right: 0; }
.rcx-carousel__arrow:hover { border-color: var(--color-azure-500); color: var(--color-azure-500); }
.rcx-carousel__arrow:focus-visible { outline: 2px solid var(--color-azure-300); outline-offset: 2px; }
.rcx-carousel__arrow .rcx-icon { width: 20px; height: 20px; }

/* Hover-to-reveal only where hover is a real input (desktop). Keyboard focus
   still reveals via :focus-within. Touch devices skip this block → arrows stay
   visible (swipe is also enabled in JS). */
@media (hover: hover) {
  .rcx-carousel__arrow { opacity: 0; pointer-events: none; }
  .rcx-carousel:hover .rcx-carousel__arrow,
  .rcx-carousel:focus-within .rcx-carousel__arrow { opacity: 1; pointer-events: auto; }
}

/* Reduced motion: no autoplay, so keep the arrows permanently visible. */
@media (prefers-reduced-motion: reduce) {
  .rcx-carousel__arrow { opacity: 1 !important; pointer-events: auto !important; }
}

/* Screen-reader-only live status ("2 / 5") */
.rcx-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Card — floating/editorial: no box, no border, no accent bar. The Upwork /
   LinkedIn distinction lives in the signal row (stars vs Recommendation badge)
   and the attribution, not in a frame. */
.rcx-testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Signal row (stars OR recommendation badge) */
.rcx-testimonial__signal {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 22px;
}

/* Real-value star meter — fill width = rating/5. Never 5 solid by default. */
.rcx-stars {
  position: relative;
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 2px;
}
.rcx-stars::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--color-neutral-200);
}
.rcx-stars__fill {
  position: absolute;
  inset: 0;
  width: var(--rcx-stars, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-azure-500);
}
.rcx-stars__fill::before { content: "\2605\2605\2605\2605\2605"; }

.rcx-testimonial__rating {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  font-size: var(--text-body-sm);
  color: var(--color-text);
}
.rcx-testimonial__rating span { color: var(--color-text-muted); font-weight: var(--weight-regular); }

/* Recommendation badge (LinkedIn — no stars) */
.rcx-testimonial__rec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-label);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--color-malibu-900);
  background: var(--color-malibu-50);
  border: var(--icon-stroke) solid var(--color-malibu-300);
  border-radius: var(--radius);
  padding: var(--space-3xs) var(--space-2xs);
}
.rcx-testimonial__rec .rcx-icon { width: 14px; height: 14px; flex: none; }

.rcx-testimonial__quote {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  color: var(--color-text);
  margin: 0;
}
/* Editorial measure — keep centered quotes readable, not full-bleed */
.rcx-carousel .rcx-testimonial__quote {
  max-width: 62ch;
  margin-inline: auto;
}

/* Endorsement chips (Card 3) */
.rcx-testimonial__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.rcx-testimonial__attr {
  margin-top: var(--space-2xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}
.rcx-testimonial__name {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
  color: var(--color-text);
}
.rcx-testimonial__meta {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  line-height: var(--leading-h5);
  letter-spacing: var(--tracking-caption);
  color: var(--color-text-muted);
}

/* Small verified tag reused inline in Upwork attribution */
.rcx-testimonial__verified-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-weight: var(--weight-semibold);
  color: var(--color-azure-700);
}
.rcx-testimonial__verified-tag .rcx-icon {
  width: 13px; height: 13px; flex: none; color: var(--color-success);
}

.rcx-social-proof__note {
  color: var(--color-text-muted);
}

/* Scoped vertical rhythm — tighter than the utility defaults, applies to all
   pages (incl. home) without touching per-page markup. Higher specificity than
   the .rcx-mt-* utilities, so these win. */
.rcx-social-proof .rcx-stat-strip   { margin-top: var(--space-md); }
.rcx-social-proof .rcx-carousel     { margin-top: var(--space-lg); }
.rcx-social-proof .rcx-social-proof__note { margin-top: var(--space-md); }

/* ---- Dark-surface guard (kept minimal; block ships on light surfaces) ---- */
.rcx-bg-dark .rcx-stars::before { color: var(--color-neutral-700); }

/* ============================================================================
   LOGO STRIP — client logo marquee (reusable, parametrized, logos-only)
   Owner rule: NO endorsement caption/title — just the logos.
   Approach: CSS-only infinite marquee. The track holds two identical copies
   of the 13 logos; a linear translateX(-50%) loop scrolls the first copy fully
   off-screen exactly as the second copy takes its place → seamless. Per-item
   symmetric padding (not flex `gap`) keeps every one of the 26 items an equal
   spacing unit, so the -50% shift lands pixel-perfect on the loop seam.
   Logos are white PNGs (height-normalized): height:30px / width:auto for even
   optical weight. opacity .6 base → 1 on hover. No JS. Honors reduced-motion.
   ============================================================================ */
.rcx-logo-strip {
  background: var(--color-bg-dark);            /* carbón #1a1f24 */
  padding-block: var(--space-lg);
  overflow: hidden;
  /* Hairlines read the band as deliberate — and separate it from an
     identically-coloured dark hero when it sits directly under one. */
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

/* Edge fade so logos enter/exit softly instead of hard-clipping at the border */
.rcx-logo-strip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.rcx-logo-strip__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: rcx-logo-marquee 55s linear infinite;
  will-change: transform;
}

/* Pause on hover (plus) — hovering anywhere on the strip stops the scroll */
.rcx-logo-strip:hover .rcx-logo-strip__track,
.rcx-logo-strip__track:focus-within { animation-play-state: paused; }

.rcx-logo-strip__item {
  flex: none;
  padding-inline: var(--space-lg);             /* 32px each side → 64px between */
  display: flex;
  align-items: center;
}

.rcx-logo-strip__logo {
  display: block;
  height: 30px;
  width: auto;
  opacity: .6;
  transition: opacity var(--duration-tooltip) var(--easing-out);
}
.rcx-logo-strip__logo:hover { opacity: 1; }

@keyframes rcx-logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Accessibility: no motion. Show one static, wrapping, centered row and drop
   the duplicate copy so no logo is repeated. Mask off (nothing scrolls). */
@media (prefers-reduced-motion: reduce) {
  .rcx-logo-strip { overflow-x: auto; }
  .rcx-logo-strip__viewport {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .rcx-logo-strip__track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-md);
  }
  .rcx-logo-strip__item--dup { display: none; }
}

/* Slightly smaller logos on narrow viewports keeps the row from feeling heavy */
@media (max-width: 640px) {
  .rcx-logo-strip__item { padding-inline: var(--space-md); }  /* 24px each side */
  .rcx-logo-strip__logo { height: 26px; }
}
