/* ============================================================
   Mind Fox — Testimonials Page CSS
   Builds on mindfox-redesign.css variables and base styles
   ============================================================ */

/* ── Scroll Reveal ──────────────────────────────────────── */
.mf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.mf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mf-reveal-delay-1 { transition-delay: 0.12s; }
.mf-reveal-delay-2 { transition-delay: 0.24s; }

/* ── Eyebrow ────────────────────────────────────────────── */
.mf-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.mf-section        { padding: var(--section-padding) 0; }
.mf-section--alt   { background: var(--bg-secondary); }
.mf-text--orange   { color: var(--orange); }

/* ── HERO ───────────────────────────────────────────────── */
.tm-hero {
  position: relative;
  padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
  overflow: hidden;
  background: var(--bg-primary);
}

.tm-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%,  rgba(255, 123, 28, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255, 123, 28, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Section background image — merged like hardware section */
.tm-section--has-bg {
  position: relative;
  overflow: hidden;
}

.tm-section__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1);
}

.tm-section--has-bg > .container {
  position: relative;
  z-index: 1;
}

.tm-hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.tm-hero__content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.tm-hero__content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── TESTIMONIALS LIST ──────────────────────────────────── */
.tm-grid-section { padding: var(--section-padding) 0; }

.tm-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

/* ── CARD ───────────────────────────────────────────────── */
.tm-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.tm-card:hover {
  border-color: rgba(255, 123, 28, 0.3);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 123, 28, 0.08);
  transform: translateY(-2px);
}

/* decorative quote mark */
.tm-card__quote {
  position: absolute;
  top: 10px; left: 22px;
  font-size: 6rem;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.12;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

/* Quote body */
.tm-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
}

.tm-card__body p {
  font-size: 1rem;
  line-height: 1.76;
  color: var(--text-secondary);
}

/* Footer row: author left, company + tag right */
.tm-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.tm-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.tm-card__avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 123, 28, 0.25);
  background: var(--bg-secondary);
}

.tm-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.tm-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tm-card__author-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tm-card__author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right side: logo + tag */
.tm-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.tm-card__company-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tm-card__company-logo img {
  max-height: 44px;
  width: auto;
  display: block;
}

.tm-card__company-logo--text img {
  max-height: 48px;
}

.logo--varex {
  max-height: 72px !important;
}

.tm-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ── STATS STRIP ────────────────────────────────────────── */
.tm-stats {
  padding: clamp(48px, 7vw, 80px) 0;
  background: linear-gradient(90deg, #0D0D11 0%, #131318 50%, #0D0D11 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tm-stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.tm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 40px;
}

.tm-stat__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tm-stat__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
  max-width: 130px;
  line-height: 1.4;
}

.tm-stat__divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── CTA ────────────────────────────────────────────────── */
.tm-cta {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.tm-cta::before {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255, 123, 28, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.tm-cta__inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.tm-cta__inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tm-cta__inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.tm-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────── */
.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.mf-btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 123, 28, 0.35);
}
.mf-btn--primary:hover {
  background: var(--orange-light);
  box-shadow: 0 6px 28px rgba(255, 123, 28, 0.5);
  transform: translateY(-1px);
}

.mf-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.mf-btn--ghost:hover {
  border-color: rgba(255, 123, 28, 0.45);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .tm-card { padding: 32px 28px 28px; }
  .tm-stat { padding: 16px 32px; }
}

@media (max-width: 768px) {
  .tm-card { padding: 28px 22px 24px; }
  .tm-card__body p { font-size: 0.9rem; }
  .tm-card__footer { gap: 14px; }
  .tm-card__company-logo img { max-height: 36px; }
  .tm-card__quote { font-size: 4rem; }
  .tm-hero { padding: calc(var(--section-padding) + 40px) 0 clamp(32px, 5vw, 56px); }
  .tm-hero__content h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .tm-hero__content p { font-size: 0.9rem; }
  .tm-grid { gap: 16px; max-width: 100%; }
  .tm-stat { padding: 14px 24px; }
  .tm-cta__inner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
}

@media (max-width: 480px) {
  .tm-card { padding: 24px 18px 20px; }

  .tm-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tm-card__right {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .tm-stats__inner {
    flex-direction: column;
    gap: 0;
  }

  .tm-stat__divider {
    width: 80px;
    height: 1px;
    margin: 4px 0;
  }

  .tm-stat { padding: 16px 12px; }
  .tm-stat__num { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  .tm-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .tm-cta__actions .mf-btn {
    width: 100%;
    max-width: 300px;
  }

  .tm-hero__content h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .tm-hero { padding: calc(var(--section-padding) + 20px) 0 clamp(24px, 4vw, 40px); }
  .tm-grid { gap: 14px; }
  .tm-card__company-logo img { max-height: 30px; }
  .tm-card__avatar { width: 42px; height: 42px; }
  .tm-card__quote { font-size: 3rem; }
}

@media (max-width: 375px) {
  .tm-card { padding: 20px 14px 16px; }
  .tm-card__body p { font-size: 0.85rem; }
  .tm-card__quote { font-size: 2.5rem; }
  .tm-cta__actions .mf-btn { padding: 12px 20px; font-size: 0.85rem; }
  .tm-hero__content h1 { font-size: clamp(1.2rem, 6vw, 1.6rem); }
}
