/* ═══════════════════════════════════════════════
   TESTIMONIALS
   Home-page dark section + dedicated page masonry.
   ═══════════════════════════════════════════════ */

/* ── Home-page dark section (unchanged) ── */
.testimonial-section { background: var(--dark-brown); padding: 80px 24px; }
.testimonial-section .section-inner { text-align: center; }
.testimonial-section .t-headline { font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; color: var(--warm-light); margin-bottom: 12px; }
.testimonial-section .t-subhead { font-size: 16px; color: #8a7e72; margin-bottom: 48px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; }
@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card { background: var(--med-brown); border: 1px solid #3d3228; border-radius: var(--radius); padding: 32px; }
.testimonial-card:hover { border-color: color-mix(in srgb, var(--primary) 30%, #3d3228); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--primary); }
.testimonial-card blockquote { font-size: 15px; line-height: 1.65; color: #c9bfb3; margin-bottom: 24px; font-style: normal; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lightest-brown); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--warm-light); }
.testimonial-role { font-size: 12px; color: #8a7e72; }

/* ══════════════════════════════════════════════════
   DEDICATED TESTIMONIALS PAGE — masonry + filters
   ══════════════════════════════════════════════════ */

/* ── Filter pills ── */
.tm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tm-filter {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tm-filter:hover {
  color: var(--fg);
  border-color: var(--fg-secondary);
}
.tm-filter.active {
  color: var(--dark-brown);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* ── Masonry grid (CSS columns) ── */
.tm-masonry {
  columns: 3;
  column-gap: 20px;
}
.tm-card {
  break-inside: avoid;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tm-card.tm-hidden {
  display: none;
}

/* ── Card inner ── */
.tm-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tm-card-inner:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 6%, transparent);
}

/* ── Featured cards (taller, with big quote mark) ── */
.tm-card--featured .tm-card-inner {
  padding: 36px 32px;
  background: var(--dark-brown);
  border-color: #3d3228;
  color: var(--warm-light);
}
.tm-card--featured .tm-card-inner:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, #3d3228);
}
.tm-card--featured .tm-quote { color: #c9bfb3; font-size: 16px; }
.tm-card--featured .tm-name { color: var(--warm-light); }
.tm-card--featured .tm-role { color: #8a7e72; }
.tm-card--featured .tm-avatar { background: var(--lightest-brown); color: var(--primary); }
.tm-card--featured .tm-tag {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  border-color: transparent;
}

.tm-quote-mark {
  font-size: 64px;
  line-height: 0.8;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.35;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

/* ── Quote text ── */
.tm-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin-bottom: 20px;
  font-style: normal;
}

/* ── Author row ── */
.tm-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.tm-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.tm-role {
  font-size: 12px;
  color: var(--muted);
}

/* ── Category tag ── */
.tm-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}

/* ── Empty state ── */
.tm-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ── Responsive (masonry page) ── */
@media (max-width: 900px) {
  .tm-masonry { columns: 2; }
}
@media (max-width: 600px) {
  .tm-masonry { columns: 1; }
  .tm-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tm-filter { white-space: nowrap; flex-shrink: 0; }
}

/* ══════════════════════════════════════════════════
   HOME-PAGE TESTIMONIAL CAROUSEL (filterable)
   ══════════════════════════════════════════════════ */

/* ── Filter pills (dark section variant) ── */
.tc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.tc-filter {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  color: #8a7e72;
  background: transparent;
  border: 1px solid #3d3228;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tc-filter:hover {
  color: var(--warm-light);
  border-color: #5a4e42;
}
.tc-filter.active {
  color: var(--dark-brown);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* ── Carousel wrapper ── */
.tc-carousel-wrap {
  position: relative;
  padding: 0 48px;
}

/* ── Carousel track ── */
.tc-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.tc-carousel::-webkit-scrollbar { display: none; }

/* ── Card ── */
.tc-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--med-brown);
  border: 1px solid #3d3228;
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, opacity 0.35s, transform 0.35s;
}
.tc-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, #3d3228);
}
.tc-card.tc-hidden {
  display: none;
}

/* ── Tag ── */
.tc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  margin-bottom: 16px;
}

/* ── Quote ── */
.tc-quote {
  font-size: 15px;
  line-height: 1.65;
  color: #c9bfb3;
  margin-bottom: 20px;
  font-style: normal;
}

/* ── Author ── */
.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lightest-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.tc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-light);
}
.tc-role {
  font-size: 12px;
  color: #8a7e72;
}

/* ── Arrows ── */
.tc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3d3228;
  background: var(--med-brown);
  color: #8a7e72;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.tc-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tc-arrow--prev { left: 0; }
.tc-arrow--next { right: 0; }

/* ── Responsive (carousel) ── */
@media (max-width: 900px) {
  .tc-card { flex: 0 0 calc(50% - 10px); }
  .tc-carousel-wrap { padding: 0 44px; }
}
@media (max-width: 600px) {
  .tc-card { flex: 0 0 85%; min-width: 0; }
  .tc-carousel-wrap { padding: 0; }
  .tc-arrow { display: none; }
  .tc-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tc-filter { white-space: nowrap; flex-shrink: 0; }
}

/* ── Tag pill rows (multi-tag cards) ── */
.tm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ── Star rating row (shared) ── */
.t-stars {
	display: inline-flex;
	gap: 2px;
	margin-bottom: 12px;
	color: var(--primary);
}
.t-star {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
	opacity: 0.25;
}
.t-star--filled { fill: currentColor; opacity: 1; }
.tm-card--featured .t-star { width: 16px; height: 16px; }
