/* ============================================================
   SWATrade | testimonials.css v3
   Cards shared by /testimonials and the homepage block.
   ============================================================ */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tm-grid--page { grid-template-columns: repeat(2, 1fr); }

.tm-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 28px 24px; margin: 0; position: relative;
}
.tm-card::before {
  content: '\201C'; position: absolute; top: 10px; left: 20px;
  font-family: var(--font-d); font-size: 64px; line-height: 1; color: var(--accent); opacity: .28;
}
.tm-card__quote { margin: 0 0 22px; padding: 14px 0 0; }
.tm-card__quote p { font-size: 15px; line-height: 1.8; color: var(--text-muted); font-style: italic; margin: 0; }
.tm-card__who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 18px; }
.tm-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--accent); background: var(--bg-3);
}
.tm-card__avatar--ini {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 18px; letter-spacing: .04em; color: var(--accent);
}
.tm-card__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tm-card__name { font-family: var(--font-d); font-size: 15px; color: var(--text); letter-spacing: .02em; }
.tm-card__cite { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }

.tm-home { padding: 80px 0; }
.tm-home .h2 { margin: 12px 0 28px; }
.tm-home__more { margin: 28px 0 0; }
.tm-disclaimer { font-size: 11px; color: var(--text-subtle); margin-top: 32px; line-height: 1.7; max-width: 640px; }
.tm-empty { color: var(--text-muted); font-style: italic; }

/* ── Share form ── */
.tm-share { padding: 0 0 100px; }
.tm-share__box {
  max-width: 760px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 40px 40px 36px;
}
.tm-share h2 { font-family: var(--font-d); font-size: clamp(22px, 3vw, 30px); color: var(--text); margin: 0 0 12px; }
.tm-share__intro { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin: 0 0 28px; }
.tm-form { display: flex; flex-direction: column; gap: 18px; }
.tm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tm-field { display: flex; flex-direction: column; gap: 7px; }
.tm-field__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tm-field__label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--text-subtle); font-weight: 500; }
.tm-form input[type="text"], .tm-form input[type="email"], .tm-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-b); font-size: 15px; padding: 12px 14px; outline: none;
  transition: border-color .2s;
}
.tm-form input:focus, .tm-form textarea:focus { border-color: var(--accent); }
.tm-form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.tm-form input[type="file"] { color: var(--text-muted); font-size: 13px; padding: 10px 0; }
.tm-form input[type="file"]::file-selector-button {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 14px; margin-right: 12px; font-family: var(--font-b); font-size: 12px; cursor: pointer;
}
.tm-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-muted); line-height: 1.6; cursor: pointer; }
.tm-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.tm-form .btn { align-self: flex-start; margin-top: 6px; }
.tm-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.tm-err { font-size: 12px; color: #eda6a3; }
.tm-err--form { margin: 0 0 16px; font-size: 14px; }

.tm-thanks { padding: 8px 0 0; }
.tm-thanks__lead { font-family: var(--font-d); font-size: 26px; color: var(--accent); margin: 0 0 10px; }
.tm-thanks p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin: 0 0 8px; }
.tm-thanks__sig { font-family: var(--font-d); color: var(--text); letter-spacing: .08em; margin-top: 14px !important; }

@media (max-width: 900px) {
  .tm-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tm-grid, .tm-grid--page { grid-template-columns: 1fr; }
  .tm-form__row { grid-template-columns: 1fr; }
  .tm-share__box { padding: 28px 20px; }
  .tm-card { padding: 24px 20px 20px; }
}

/* ── Homepage scroll gallery (v3) ── */
.tm-carousel { position: relative; display: flex; align-items: stretch; gap: 14px; }
.tm-track {
  flex: 1; min-width: 0; display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 6px 2px 10px; outline: none;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-track:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 12px; }
.tm-track .tm-card { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; min-height: 100%; }
.tm-track .tm-card__quote { flex: 1; }
.tm-track .tm-card__quote p {
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden;
}
.tm-carousel__btn {
  flex: 0 0 48px; align-self: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--accent); background: rgba(196,147,58,.06); color: var(--accent);
  font-family: var(--font-d); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 0 4px;
  transition: background .2s, color .2s, transform .2s, opacity .2s;
}
.tm-carousel__btn:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.tm-carousel__btn:disabled { opacity: .25; cursor: default; background: transparent; color: var(--accent); transform: none; }
.tm-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; }
.tm-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); background: transparent;
  padding: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.tm-dot.is-on { background: var(--accent); transform: scale(1.25); }
.tm-home__more { text-align: center; margin: 26px 0 0; }
.tm-home .tm-disclaimer { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 900px) { .tm-track .tm-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) {
  .tm-carousel { gap: 8px; }
  .tm-carousel__btn { flex-basis: 40px; width: 40px; height: 40px; font-size: 26px; }
  .tm-track .tm-card { flex-basis: 100%; }
}

/* ── Homepage jump links to #testimonials (v2) ── */
.trust-bar__item--link { cursor: pointer; transition: color .2s; }
.trust-bar__item--link:hover .trust-bar__label { color: var(--accent); }
.proof__voices { margin-top: 32px; }
