/*!
 * UI Design & Front-End Architecture by Woomark Studio
 * Exclusive theme developed for synergyo2.com
 *
 * testimonials.css — Testimonials page (testimonials.html, body.testimonials-page).
 * Load AFTER styles.css and product.css (uses their tokens, .btn, .eyebrow, .kicker, .h-xl, .h-lg, .crumbs, .on-dark, .sec-head).
 * Section backgrounds (never two equal in a row):
 *   intro mist → player + playlist white → professionals navy → share your story mist → footer
 * The playlist and the professional cards are built by wmkore/js/testimonials.js from its STORIES list.
 */

/* ============ INTRO ============ */
.tst-hero {
  position: relative;
  padding: 34px 0 64px;
  background: var(--mist);
  overflow: hidden;
}
.tst-hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid #d3e3f3;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.45),
    0 0 0 150px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.tst-hero .wrap {
  position: relative;
}
.tst-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 32px 64px;
  margin-top: 40px;
}
.tst-hero .h-xl {
  margin-top: 18px;
}
.tst-hero-side p {
  margin: 0 0 26px;
  max-width: 420px;
}
.tst-stats {
  display: flex;
  gap: 34px;
}
.tst-stats li {
  display: grid;
  gap: 4px;
}
.tst-stats strong {
  font: 800 2rem/1 var(--head);
  letter-spacing: -0.04em;
  color: var(--navy);
}
.tst-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============ PLAYER + PLAYLIST ============ */
.tst-watch {
  padding: 64px 0 90px;
  background: #fff;
}
.tst-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: stretch;
}

/* --- player --- */
.tst-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 30px 60px rgba(11, 43, 80, 0.16);
}
.tst-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tst-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
}
.tst-poster .tst-art {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}
.tst-poster:hover .tst-art {
  transform: scale(1.03);
}
.tst-poster::after {
  /* soft bottom shade so the play button reads on any thumbnail */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 51, 0) 45%, rgba(6, 23, 51, 0.45) 100%);
  pointer-events: none;
}
.tst-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(6, 23, 51, 0.35);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.tst-play i {
  margin-left: 4px;
}
.tst-poster:hover .tst-play,
.tst-poster:focus-visible .tst-play {
  transform: scale(1.08);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.2),
    0 22px 46px rgba(6, 23, 51, 0.4);
}
.tst-pending {
  /* shown in the stage when a story has no YouTube ID yet */
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(6, 23, 51, 0.82);
  color: #fff;
  font: 600 1rem var(--head);
}
.tst-pending i {
  font-size: 1.6rem;
  color: var(--cyan);
}
.tst-pending small {
  font: 400 0.82rem var(--body);
  color: #b7cbe3;
}

/* --- now playing --- */
.tst-now {
  padding: 26px 4px 0;
}
.tst-now-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.tst-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
}
.tst-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(13, 31, 56, 0.08);
  flex: none;
}
.tst-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 40px;
  background: var(--ice);
  color: var(--blue2);
  font: 700 0.68rem/1 var(--head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tst-tag.is-lang {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.tst-now-title {
  margin: 14px 0 6px;
  font: 700 clamp(1.5rem, 2.4vw, 2.1rem) / 1.1 var(--head);
  letter-spacing: -0.04em;
  color: var(--navy);
}
.tst-now-desc {
  margin: 0;
  max-width: 640px;
}
.tst-now-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.tst-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.tst-nav:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tst-share {
  margin-left: auto;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.tst-share.is-done {
  color: var(--green-h);
}

/* --- playlist --- */
.tst-list {
  position: relative;
}
.tst-list-inner {
  /* desktop: the list takes the player column's height and scrolls inside */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3ecf6;
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
}
.tst-list-head {
  padding: 20px 20px 0;
}
.tst-list-head p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  font: 500 0.85rem var(--head);
  color: var(--muted);
}
.tst-list-head strong {
  font: 800 1.05rem var(--head);
  letter-spacing: -0.02em;
  color: var(--navy);
}
.tst-filters {
  /* chips wrap to a second line, so every country stays visible */
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  padding: 14px 20px 16px;
  border-bottom: 1px solid #edf2f8;
}
.tst-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: 600 0.8rem var(--head);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.tst-chip .tst-flag {
  width: 18px;
  height: 13px;
}
.tst-chip small {
  font-size: 0.72rem;
  color: var(--muted);
}
.tst-chip:hover {
  border-color: #b9cfe6;
}
.tst-chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tst-chip[aria-pressed="true"] small {
  color: #9fb8d6;
}
.tst-items {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9d9ea transparent;
}
.tst-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s;
}
.tst-item:hover {
  background: var(--mist);
}
.tst-item[aria-current="true"] {
  background: var(--ice);
}
.tst-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
}
.tst-thumb .tst-art {
  position: absolute;
  inset: 0;
}
.tst-item-txt {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.tst-item-txt strong {
  font: 700 0.9rem/1.25 var(--head);
  letter-spacing: -0.01em;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tst-item-txt small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--muted);
}
.tst-item-txt small .tst-flag {
  width: 16px;
  height: 12px;
}
.tst-eq {
  /* "now playing" bars, only on the current item */
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-right: 6px;
}
.tst-eq i {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: var(--blue2);
}
.tst-item[aria-current="true"] .tst-eq {
  display: flex;
}
.is-playing .tst-item[aria-current="true"] .tst-eq i {
  animation: tst-eq 0.9s ease-in-out infinite alternate;
}
.is-playing .tst-item[aria-current="true"] .tst-eq i:nth-child(2) {
  animation-delay: -0.3s;
}
.is-playing .tst-item[aria-current="true"] .tst-eq i:nth-child(3) {
  animation-delay: -0.6s;
}
@keyframes tst-eq {
  from {
    height: 25%;
  }
  to {
    height: 100%;
  }
}
.tst-more {
  display: none;
}
.tst-disclaimer {
  margin: 46px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ============ ART (thumbnail or typographic tile) ============
 * With a YouTube ID → the video's own thumbnail (.tst-art img).
 * Without one → a brand tile with initials + flag, 4 tones (data-tone 0–3) so the list never looks repeated. */
.tst-art {
  display: block;
  overflow: hidden;
  container-type: inline-size;
}
.tst-art img.tst-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tst-tile {
  --t1: #0b2b50;
  --t2: #1f6fd6;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 22%, rgba(114, 220, 239, 0.35), rgba(114, 220, 239, 0) 45%),
    linear-gradient(135deg, var(--t1) 0%, var(--t2) 100%);
}
.tst-tile[data-tone="1"] {
  --t1: #061733;
  --t2: #2a8fc9;
}
.tst-tile[data-tone="2"] {
  --t1: #0d3566;
  --t2: #3aa7c4;
}
.tst-tile[data-tone="3"] {
  --t1: #0b2b50;
  --t2: #4f7fc2;
}
.tst-tile::before {
  /* the brand rings */
  content: "";
  position: absolute;
  right: -12cqi;
  bottom: -30cqi;
  width: 62cqi;
  height: 62cqi;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 6cqi rgba(255, 255, 255, 0.05),
    0 0 0 13cqi rgba(255, 255, 255, 0.04);
}
.tst-initials {
  position: relative;
  font: italic 400 26cqi/1 var(--serif);
  letter-spacing: -0.02em;
  color: #fff;
}
.tst-initials i {
  font-size: 18cqi;
  color: rgba(255, 255, 255, 0.92);
}
.tst-tile .tst-flag {
  position: absolute;
  left: 6cqi;
  top: 7cqi;
  width: 10cqi;
  height: 7.5cqi;
  min-width: 16px;
  min-height: 12px;
  border-radius: 2px;
}
.tst-tile-brand {
  position: absolute;
  left: 6cqi;
  bottom: 6cqi;
  font: 700 3.2cqi/1 var(--head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.tst-thumb .tst-tile-brand,
.tst-thumb .tst-tile .tst-flag {
  /* the flag is already next to the name in the list */
  display: none;
}
/* big poster + professional cards: the play button sits in the centre, so no initials there */
.tst-poster .tst-initials,
.tst-pro-media .tst-initials {
  display: none;
}
.tst-tile-name {
  position: absolute;
  left: 6cqi;
  bottom: 11cqi;
  max-width: 70%;
  font: italic 400 6.4cqi/1 var(--serif);
  letter-spacing: -0.01em;
  color: #fff;
}

/* ============ PROFESSIONALS ============ */
.tst-pros {
  position: relative;
  padding: 110px 0 120px;
  background: var(--navy);
  overflow: hidden;
}
.tst-pros::before {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -320px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, 0.025),
    0 0 0 170px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.tst-pros .wrap {
  position: relative;
}
.tst-pros .sec-head p {
  color: #b7cbe3;
}
.tst-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.tst-pro {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.5s var(--ease),
    background 0.5s,
    border-color 0.5s;
}
.tst-pro:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(114, 220, 239, 0.35);
}
.tst-pro-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.tst-pro-media .tst-art {
  position: absolute;
  inset: 0;
}
.tst-pro-media .tst-play {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  font-size: 1.05rem;
}
.tst-pro:hover .tst-play {
  transform: scale(1.08);
}
.tst-pro-body {
  display: grid;
  gap: 8px;
  padding: 22px 24px 26px;
}
.tst-pro-role {
  font: 700 0.68rem/1 var(--head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.tst-pro-body strong {
  font: 700 1.2rem/1.2 var(--head);
  letter-spacing: -0.03em;
}
.tst-pro-body span:last-child {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b7cbe3;
}
.tst-pro-note {
  margin: 30px 0 0;
  font-size: 0.78rem;
  color: #8ba6c4;
}

/* ============ SHARE YOUR STORY ============ */
.tst-cta {
  padding: 100px 0;
  background: var(--mist);
}
.tst-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px 64px;
  padding: 56px 60px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #e3ecf6;
}
.tst-cta-box p {
  margin: 16px 0 0;
  max-width: 520px;
}
.tst-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .tst-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
  }
  .tst-item {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .tst-cta-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .tst-hero-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .tst-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* the list flows under the player and shows 6 stories + "Show more" */
  .tst-list-inner {
    position: static;
  }
  .tst-items {
    overflow: visible;
  }
  .tst-items.is-collapsed li:nth-child(n + 7) {
    display: none;
  }
  .tst-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 16px 16px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #fff;
    color: var(--navy);
    font: 700 0.82rem var(--head);
    cursor: pointer;
  }
  .tst-more[hidden] {
    display: none;
  }
  .tst-pros {
    padding: 80px 0 90px;
  }
  .tst-pro-grid {
    /* swipe row so the 3 cards stay big */
    display: flex;
    gap: 16px;
    margin-inline: -22px;
    padding: 4px 22px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tst-pro-grid::-webkit-scrollbar {
    display: none;
  }
  .tst-pro {
    flex: 0 0 min(340px, 78%);
    scroll-snap-align: start;
  }
}

@media (max-width: 620px) {
  /* compact intro so the player shows sooner */
  .tst-hero {
    padding: 26px 0 30px;
  }
  .tst-hero-grid {
    row-gap: 12px;
    margin-top: 20px;
  }
  .tst-hero .h-xl {
    margin-top: 12px;
  }
  .tst-hero-side p {
    margin-bottom: 18px;
  }
  .tst-stats {
    gap: 24px;
  }
  .tst-stats strong {
    font-size: 1.6rem;
  }
  .tst-watch {
    padding: 22px 0 70px;
  }
  .tst-stage {
    /* full-bleed player on phones */
    margin-inline: -16px;
    border-radius: 0;
  }
  .tst-play {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    font-size: 1.15rem;
  }
  .tst-now {
    padding-top: 20px;
  }
  .tst-list-head,
  .tst-filters {
    padding-inline: 14px;
  }
  .tst-pro-grid {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .tst-cta {
    padding: 70px 0;
  }
  .tst-cta-box {
    padding: 36px 24px;
    border-radius: 22px;
  }
  .tst-cta-btns .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tst-poster:hover .tst-art,
  .tst-pro:hover {
    transform: none;
  }
  .is-playing .tst-item[aria-current="true"] .tst-eq i {
    animation: none;
  }
}
