/* =====================================================
   NeuraTech – Testimonials Section
   Separate stylesheet: testimonials.css
   ===================================================== */

/* ── Google Fonts imported in HTML ── */

/* ── CSS Custom Properties (brand tokens) ── */
:root {
  --nt-teal:        #1e9dbe;
  --nt-teal-dark:   #1480a0;
  --nt-teal-light:  #d0f0f9;
  --nt-blue:        #1a4e7c;
  --nt-blue-dark:   #0e2f4f;
  --nt-white:       #ffffff;
  --nt-off-white:   #f4fbfd;
  --nt-text:        #1a2a36;
  --nt-muted:       #5a7080;
  --nt-border:      rgba(30, 157, 190, 0.18);
  --nt-card-bg:     #ffffff;
  --nt-shadow:      0 4px 32px rgba(30, 157, 190, 0.10);
  --nt-shadow-hover:0 12px 48px rgba(30, 157, 190, 0.22);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-card: 18px;
  --transition:  0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset only for this section ── */
.testimonials *,
.testimonials *::before,
.testimonials *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================================================
   SECTION WRAPPER
   ===================================================== */
.testimonials {
  position: relative;
  background: var(--nt-off-white);
  padding: 100px 24px 80px;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--nt-text);
}

/* ── Decorative dot-grid background ── */
.testi-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(30, 157, 190, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Ambient glows ── */
.testi-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
}
.testi-glow--left {
  background: var(--nt-teal);
  top: -160px;
  left: -180px;
}
.testi-glow--right {
  background: var(--nt-blue);
  bottom: -160px;
  right: -180px;
}

/* =====================================================
   CONTAINER
   ===================================================== */
.testi-container {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  z-index: 1;
}

/* =====================================================
   HEADER
   ===================================================== */
.testi-header {
  text-align: center;
  margin-bottom: 56px;
}

.testi-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nt-teal);
  background: var(--nt-teal-light);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.testi-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--nt-blue-dark);
  margin-bottom: 16px;
}

.testi-title em {
  font-style: italic;
  color: var(--nt-teal);
}

.testi-subtitle {
  font-size: 1.05rem;
  color: var(--nt-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* =====================================================
   STATS STRIP
   ===================================================== */
.testi-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, var(--nt-blue-dark) 0%, var(--nt-blue) 60%, var(--nt-teal-dark) 100%);
  border-radius: 16px;
  padding: 32px 48px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  row-gap: 24px;
  box-shadow: 0 8px 40px rgba(14, 47, 79, 0.28);
}

.stat-item {
  flex: 1 1 120px;
  text-align: center;
  min-width: 100px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--nt-white);
  line-height: 1;
}

.stat-num sup {
  font-size: 1rem;
  vertical-align: super;
  color: var(--nt-teal-light);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  margin: 0 8px;
}

/* =====================================================
   CARDS GRID
   ===================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* ── Base card ── */
.testi-card {
  position: relative;
  background: var(--nt-card-bg);
  border: 1px solid var(--nt-border);
  border-radius: var(--radius-card);
  padding: 36px 32px 28px;
  box-shadow: var(--nt-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nt-shadow-hover);
  border-color: rgba(30, 157, 190, 0.45);
}

/* ── Featured card spans 5 columns ── */
.testi-card--featured {
  grid-column: span 5;
  background: linear-gradient(145deg, var(--nt-blue-dark) 0%, var(--nt-blue) 100%);
  border-color: transparent;
  color: var(--nt-white);
}

.testi-card--featured .testi-card__body {
  color: rgba(255,255,255,0.88);
}

.testi-card--featured .testi-card__info strong {
  color: var(--nt-white);
}

.testi-card--featured .testi-card__info span {
  color: rgba(255,255,255,0.55);
}

.testi-card--featured .testi-card__quote-mark {
  color: rgba(255,255,255,0.12);
}

.testi-card--featured .testi-card__avatar {
  background: rgba(255,255,255,0.18);
  color: var(--nt-white);
  border-color: rgba(255,255,255,0.3);
}

/* ── Wide card spans 7 columns on last row ── */
.testi-card--wide {
  grid-column: span 7;
}

/* ── Quote mark decoration ── */
.testi-card__quote-mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--nt-teal-light);
  user-select: none;
  margin-bottom: 4px;
  display: block;
}

/* ── Stars ── */
.testi-card__stars {
  color: #f5c518;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ── Quote body ── */
.testi-card__body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--nt-muted);
  font-style: italic;
  font-weight: 300;
  flex: 1;
}

/* ── Card footer ── */
.testi-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--nt-border);
}

.testi-card--featured .testi-card__footer {
  border-top-color: rgba(255,255,255,0.15);
}

/* ── Avatar ── */
.testi-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nt-teal-light);
  color: var(--nt-teal-dark);
  border: 2px solid var(--nt-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ── Name / role ── */
.testi-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testi-card__info strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nt-text);
}

.testi-card__info span {
  font-size: 0.78rem;
  color: var(--nt-muted);
  font-weight: 300;
}

/* ── Company logo tag ── */
.testi-card__logo-tag {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--nt-teal-light);
  color: var(--nt-teal-dark);
  border: 1px solid rgba(30, 157, 190, 0.3);
}

.testi-card__logo-tag--alt {
  background: rgba(30, 157, 190, 0.12);
  color: var(--nt-blue);
  border-color: rgba(30, 157, 190, 0.25);
}

/* =====================================================
   CTA STRIP
   ===================================================== */
.testi-cta {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 32px;
  background: var(--nt-white);
  border: 1px solid var(--nt-border);
  border-radius: 16px;
  box-shadow: var(--nt-shadow);
}

.testi-cta p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nt-blue-dark);
}

.testi-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--nt-teal) 0%, var(--nt-blue) 100%);
  color: var(--nt-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 20px rgba(30, 157, 190, 0.35);
}

.testi-cta__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(30, 157, 190, 0.5);
  opacity: 0.92;
}

/* =====================================================
   ENTRY ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testi-header,
.testi-stats,
.testi-card,
.testi-cta {
  animation: fadeUp 0.65s ease both;
}

.testi-header  { animation-delay: 0.05s; }
.testi-stats   { animation-delay: 0.15s; }

.testi-card:nth-child(1) { animation-delay: 0.22s; }
.testi-card:nth-child(2) { animation-delay: 0.30s; }
.testi-card:nth-child(3) { animation-delay: 0.38s; }
.testi-card:nth-child(4) { animation-delay: 0.46s; }
.testi-card:nth-child(5) { animation-delay: 0.54s; }

.testi-cta { animation-delay: 0.62s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 900px) {
  .testi-card,
  .testi-card--featured,
  .testi-card--wide {
    grid-column: span 6;
  }

  .testi-stats {
    padding: 24px 24px;
  }

  .stat-divider {
    display: none;
  }
}

/* Mobile */
@media (max-width: 580px) {
  .testimonials {
    padding: 72px 16px 60px;
  }

  .testi-card,
  .testi-card--featured,
  .testi-card--wide {
    grid-column: span 12;
  }

  .testi-grid {
    gap: 16px;
  }

  .testi-stats {
    gap: 20px;
    row-gap: 20px;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .testi-cta {
    flex-direction: column;
    gap: 16px;
  }
}
