/* "See it in action" testimonial carousel - shared by art-baetes.com and the affiliate pages
   (<slug>.art-baetes.com load it from https://art-baetes.com/assets/testimonials/).
   Markup and data come from ts-carousel.js. Colours fall back to the main site's palette
   on pages that don't define these custom properties. */
.ts-card {
  --ts-bg: var(--bg, #ffffff);
  --ts-bg-subtle: var(--bg-subtle, #f5f1eb);
  --ts-text: var(--text, #1a1714);
  --ts-text-mid: var(--text-mid, #5a534a);
  --ts-quote: #3d3833;
  --ts-quote-mark: #d9cbbb;
  --ts-accent: var(--accent, #b87333);
  --ts-accent-bg2: var(--accent-bg2, #f0e0d0);
  --ts-border: var(--border, #e8e2d9);
  --ts-border-strong: var(--border-strong, #d0c8be);
  --ts-serif: var(--serif, Georgia, 'Times New Roman', serif);
  --ts-sans: var(--sans, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif);

  visibility: visible; /* affiliate pages hide the card until this file has loaded */
  font-family: var(--ts-sans);
  background: var(--ts-bg-subtle);
  border: 1px solid var(--ts-border);
  border-radius: 32px;
  padding: 56px 64px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ts-slides { display: grid; touch-action: pan-y; container-type: inline-size; }

.ts-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
.ts-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.ts-main {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ts-person { display: flex; align-items: center; gap: 16px; }
.ts-person-text { display: flex; flex-direction: column; gap: 2px; }
.ts-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ts-accent-bg2);
  border: 2px solid var(--ts-bg);
  box-shadow: 0 0 0 1px var(--ts-border);
}
.ts-name { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ts-text); }
.ts-role { font-size: 15px; color: var(--ts-text-mid); line-height: 1.4; }

/* Quote: sans body text with one light serif quote mark above it */
.ts-quote-wrap { display: flex; flex-direction: column; }
.ts-quote-mark {
  display: block;
  height: 0.5em;
  margin-bottom: 4px;
  font-family: var(--ts-serif);
  font-size: 72px;
  line-height: 1;
  color: var(--ts-quote-mark);
  user-select: none;
}
.ts-quote {
  margin: 0;
  font-family: var(--ts-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ts-quote);
}

.ts-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ts-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--ts-text);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.ts-cta svg { flex-shrink: 0; }
.ts-hint { font-size: 14px; color: var(--ts-text-mid); }

/* Phone frame + screen recording */
.ts-device {
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}
.ts-phone {
  height: 480px;
  aspect-ratio: 1 / 2;
  border-radius: 42px;
  background: var(--ts-text);
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(26, 23, 20, 0.45);
}
.ts-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  background: var(--ts-accent-bg2);
}
.ts-video,
.ts-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.ts-poster { transition: opacity 400ms ease; pointer-events: none; }
.ts-slide.is-playing .ts-poster { opacity: 0; }
.ts-caption { font-size: 14px; color: var(--ts-text-mid); text-align: center; }

/* Progress bars, counter, arrows */
.ts-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ts-border);
  padding-top: 28px;
}
.ts-bars { display: flex; align-items: center; gap: 4px; }
.ts-bar {
  width: 52px;
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ts-bar-track {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--ts-border-strong);
  overflow: hidden;
}
.ts-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ts-text);
  border-radius: 3px;
  transition: width 120ms linear;
}
.ts-counter {
  margin-left: 12px;
  font-size: 14px;
  color: var(--ts-text-mid);
  font-variant-numeric: tabular-nums;
}
.ts-arrows { display: flex; gap: 12px; }
.ts-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--ts-border);
  color: var(--ts-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
@media (hover: hover) {
  .ts-cta:hover { background: var(--ts-accent); transform: translateY(-1px); }
  .ts-arrow:hover { background: var(--ts-border-strong); }
}
.ts-cta:focus-visible,
.ts-bar:focus-visible,
.ts-arrow:focus-visible { outline: 2px solid var(--ts-accent); outline-offset: 3px; }

@media (max-width: 960px) {
  .ts-card { padding: 40px 32px 32px; border-radius: 28px; }
  .ts-quote { font-size: 20px; }
}
/* slide wraps to one column below 440 + 56 + 280px: keep content top-aligned with an even gap */
@container (max-width: 775px) {
  .ts-slide { align-content: flex-start; row-gap: 40px; }
}
@media (max-width: 600px) {
  .ts-card { padding: 28px 20px 24px; border-radius: 24px; gap: 28px; }
  .ts-slide { row-gap: 32px; }
  .ts-main { gap: 24px; }
  .ts-quote-mark { font-size: 60px; }
  .ts-quote { font-size: 18px; }
  .ts-cta { width: 100%; justify-content: space-between; text-align: left; padding: 12px 20px; }
  /* keep part of the next section in view below the phone */
  .ts-phone { height: min(480px, 60vh); border-radius: 36px; padding: 8px; }
  .ts-screen { border-radius: 28px; }
  .ts-controls { padding-top: 20px; gap: 16px; flex-wrap: nowrap; }
  /* bars shrink so the arrows stay on the same row with 4+ testimonials */
  .ts-bars { flex: 1 1 auto; min-width: 0; }
  .ts-bar { width: auto; flex: 0 1 40px; min-width: 22px; }
  .ts-counter { margin-left: 8px; white-space: nowrap; }
  .ts-arrows { gap: 8px; }
  .ts-arrow { width: 44px; height: 44px; }
}
@media (max-width: 359px) {
  .ts-controls { justify-content: center; flex-wrap: wrap; }
}
