/* ===== TESTIMONIALS PAGE ===== */

/* ---- HERO ---- */
.tm-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
}
.tm-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.18) saturate(1.3);
}
.tm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.1) 100%);
}
.tm-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.tm-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.tm-orb1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(124,58,237,0.3), transparent 70%); top: -100px; right: -100px; }
.tm-orb2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%); bottom: -60px; left: -60px; animation-delay: 4s; }
.tm-hero-content { position: relative; z-index: 1; padding: 60px 24px; }
.tm-hero-content .hero-badge { display: inline-flex; margin-bottom: 20px; }
.tm-hero-content h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.05; margin-bottom: 20px; }
.tm-hero-content p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 600px; }

/* ---- FEATURED CLIENT ---- */
.tm-featured { padding: 100px 0; background: var(--bg2); position: relative; overflow: hidden; }
.tm-featured::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.tm-featured-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative; z-index: 1;
}
.tm-featured-text .section-tag { display: inline-block; margin-bottom: 16px; }
.tm-featured-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; margin-bottom: 8px; }
.tm-featured-client-name {
  color: var(--accent2); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 28px;
}
.tm-featured-text p { color: var(--muted); font-size: 0.97rem; line-height: 1.85; margin-bottom: 16px; }
.tm-featured-author {
  display: flex; align-items: center; gap: 16px;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
}
.tm-featured-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff;
  flex-shrink: 0;
}
.tm-featured-author-info strong { display: block; font-size: 0.95rem; font-weight: 600; }
.tm-featured-author-info span { color: var(--muted); font-size: 0.82rem; }
.tm-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 4px; }

.tm-featured-media { position: relative; }
.tm-featured-frame { max-width: 320px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.tm-featured-frame img { width: 100%; display: block; object-fit: contain; transition: transform 0.6s ease; }
.tm-featured-frame:hover img { transform: scale(1.03); }
.tm-featured-glow {
  position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), transparent 60%);
  pointer-events: none;
}

/* ---- TESTIMONIALS GRID ---- */
.tm-section { padding: 100px 0; }
.tm-section-header { text-align: center; margin-bottom: 64px; }
.tm-section-header .section-tag { display: inline-block; margin-bottom: 16px; }
.tm-section-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }

.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.tm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  height: 100%;
}
.tm-card::before {
  content: '\201C';
  position: absolute; top: 16px; right: 24px;
  font-size: 5rem; line-height: 1; color: rgba(124,58,237,0.12);
  font-family: Georgia, serif; pointer-events: none;
}
.tm-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.3); box-shadow: 0 20px 60px rgba(124,58,237,0.1); }

.tm-card-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.tm-card-quote { color: var(--muted); font-size: 0.93rem; line-height: 1.8; flex: 1; font-style: italic; }
.tm-card-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); margin-top: auto; }
.tm-card-photo {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--border);
}
.tm-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tm-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600; }
.tm-card-parody {
  font-size: 0.72rem; color: var(--accent);
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  padding: 2px 8px; border-radius: 50px; margin-left: 6px;
  font-style: normal; vertical-align: middle;
}

/* SB19 wide card — full-width landscape, last row */
.tm-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr auto;
  gap: 0 40px;
  align-items: start;
}
.tm-card--wide .tm-card-stars { grid-column: 1; grid-row: 1; }
.tm-card--wide .tm-card-quote {
  grid-column: 1; grid-row: 2;
  font-size: 1.1rem; line-height: 1.85;
}
.tm-card--wide .tm-card-author {
  grid-column: 2; grid-row: 1 / 4;
  flex-direction: column; align-items: center; text-align: center;
  border-top: none; border-left: 1px solid var(--border);
  padding-top: 0; padding-left: 40px;
  justify-content: center; height: 100%;
}
.tm-card--wide .tm-card-photo {
  width: 100px; height: 100px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.tm-card--wide .tm-card-photo img { border-radius: 12px; }

/* ---- DISCLAIMER ---- */
.tm-disclaimer {
  padding: 40px 0 80px;
  text-align: center;
}
.tm-disclaimer p {
  color: var(--muted); font-size: 0.82rem; line-height: 1.7;
  max-width: 700px; margin: 0 auto;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 24px;
}

/* ---- CTA ---- */
.tm-cta { padding: 120px 0; position: relative; overflow: hidden; text-align: center; }
.tm-cta-orb {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.tm-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.tm-cta-inner .section-tag { display: inline-block; margin-bottom: 16px; }
.tm-cta-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; margin-bottom: 20px; line-height: 1.15; }
.tm-cta-inner p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 40px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .tm-featured-inner { grid-template-columns: 1fr; gap: 48px; }
  .tm-grid { grid-template-columns: 1fr 1fr; }
  .tm-card--wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .tm-card--wide .tm-card-author {
    grid-column: 1; grid-row: auto;
    flex-direction: row; text-align: left;
    border-left: none; border-top: 1px solid var(--border);
    padding-left: 0; padding-top: 20px; height: auto;
  }
  .tm-card--wide .tm-card-photo { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 0; }
  .tm-card--wide .tm-card-photo img { border-radius: 50%; }
}
@media (max-width: 600px) {
  .tm-grid { grid-template-columns: 1fr; }
}
