/* testimonials.css - styles scoped to the /testimonials page only.
   Uses theme tokens so light/dark both work without touching components.css. */

.tg-hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-7);
}
.tg-hero .tg-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  margin-bottom: 14px;
}
.tg-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--color-text);
}
.tg-hero p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-text-subtle);
  max-width: 660px;
  margin: 0 auto;
}

.tg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--space-8);
}
@media (max-width: 980px) {
  .tg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tg-grid { grid-template-columns: 1fr; }
}

.tg-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Responsive 16:9 video wrapper for the Bunny embed */
.tg-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.tg-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image testimonial (screenshot) - sits where .tg-video would; click to zoom */
.tg-img {
  width: 100%;
  background: #000;
  cursor: zoom-in;
}
.tg-img img {
  display: block;
  width: 100%;
  height: auto;
}

.tg-body {
  padding: 20px 22px 24px;
}
.tg-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.tg-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-2);
  margin: 3px 0 12px;
}
.tg-cap {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--color-text-subtle);
  margin: 0;
}

/* Store logo + (non-clickable) domain, used in place of a plain .tg-role */
.tg-store {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-store__logo {
  height: 18px;
  width: auto;
  display: block;
}

/* Click-to-zoom lightbox for image testimonials (built by testimonials-lightbox.js).
   Mirrors the blog lightbox; this page does not load blog.css. */
.tm-lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(8, 8, 30, 0.86);
  cursor: zoom-out;
}
.tm-lightbox.is-open {
  display: flex;
}
.tm-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.tm-lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.tm-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
}
@media (prefers-reduced-motion: no-preference) {
  .tm-lightbox img {
    animation: tm-lightbox-in 0.18s ease-out;
  }
  @keyframes tm-lightbox-in {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: none; }
  }
}

/* Closing CTA */
.tg-cta {
  text-align: center;
  padding: var(--space-8) 0 var(--space-8);
}
.tg-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  margin: 0 0 24px;
  color: var(--color-text);
}
.tg-cta__btns {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.tg-cta__meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-subtle);
}
.tg-cta__btns .btn { min-width: 285px; }
@media (max-width: 768px) {
  .tg-cta__btns { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .tg-cta__btns .btn { width: 100%; min-width: 0; }
}

/* Primary gradient + raised white CTA buttons. Mirrors home.css .btn-grad /
   .btn-light, which this isolated page does not load. Base .btn / .btn-lg come
   from components.css. */
.btn-grad {
  background: var(--gradient-brand);
  color: var(--color-text-on-brand);
  box-shadow: var(--shadow-brand);
  border-color: transparent;
}
.btn-grad:hover {
  transform: translateY(-1px);
  color: var(--color-text-on-brand);
}
.btn-light {
  background: #ffffff;
  color: var(--color-brand-deep);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 1px 2px rgba(20, 30, 90, 0.06), 0 10px 22px -8px rgba(20, 30, 90, 0.22);
}
.btn-light:hover {
  background: #ffffff;
  color: var(--color-brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(20, 30, 90, 0.08), 0 14px 28px -8px rgba(20, 30, 90, 0.26);
}
[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-light:hover { background: #ffffff; color: var(--color-brand-deep); }
