@charset "UTF-8";
/* ============================================================================
   Video testimonials — vertical YouTube Shorts (9:16) facade with click-to-play
   Loaded sitewide via misuy-video-testimonials handle in functions.php.
   Privacy: youtube-nocookie.com only, iframe injected on click only.
   ============================================================================ */

.igtax-video-testimonials {
  margin: 2.25rem auto 2.5rem;
  max-width: 820px;
  text-align: center;
  padding: 0 1rem;
}

.igtax-vt-header {
  margin-bottom: 1.75rem;
}

.igtax-vt-title {
  font-family: 'Heebo', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 1.875rem);
  font-weight: 800;
  color: #0B2E4A;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.igtax-vt-accent {
  color: #15803D;
  font-weight: 900;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.igtax-vt-accent::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, #C9A24D 0%, #15803D 100%);
  border-radius: 3px;
  opacity: 0.85;
}

.igtax-vt-subtitle {
  color: #5B677A;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
  max-width: 540px;
  margin-inline: auto;
}

.igtax-vt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  justify-items: center;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.igtax-vt-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Facade button = the clickable thumbnail. Replaced by <iframe> on click. */
.igtax-vt-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #06192A;
  box-shadow: 0 12px 28px -8px rgba(11, 46, 74, 0.30),
              0 4px 12px -4px rgba(11, 46, 74, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: 0;
  outline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
}

.igtax-vt-facade:hover,
.igtax-vt-facade:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 38px -8px rgba(11, 46, 74, 0.42),
              0 8px 16px -4px rgba(11, 46, 74, 0.25);
}

.igtax-vt-facade:focus-visible {
  outline: 3px solid #C9A24D;
}

.igtax-vt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.igtax-vt-facade:hover .igtax-vt-thumb {
  transform: scale(1.04);
}

.igtax-vt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(11, 46, 74, 0.05) 0%,
              rgba(11, 46, 74, 0) 35%,
              rgba(6, 25, 42, 0.55) 100%);
  pointer-events: none;
}

/* Centered play button — gold gradient */
.igtax-vt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A24D 0%, #A78032 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.40),
              0 0 0 6px rgba(201, 162, 77, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.igtax-vt-facade:hover .igtax-vt-play,
.igtax-vt-facade:focus-visible .igtax-vt-play {
  transform: translate(-50%, -50%) scale(1.10);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.50),
              0 0 0 10px rgba(201, 162, 77, 0.35);
}

.igtax-vt-play svg {
  width: 32px;
  height: 32px;
  margin-inline-start: 4px; /* visually center the play triangle */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* "Verified testimonial" badge top-start corner */
.igtax-vt-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.95);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.igtax-vt-badge svg {
  flex-shrink: 0;
}

/* Caption under each video — name/role of the recommender */
.igtax-vt-caption {
  margin: 0;
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0B2E4A;
  line-height: 1.4;
  text-align: center;
  letter-spacing: -0.005em;
}

/* The iframe that replaces the facade after click */
.igtax-vt-card iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 18px;
  display: block;
  background: #000;
  box-shadow: 0 12px 28px -8px rgba(11, 46, 74, 0.30);
}

/* CTA below the videos (optional, used on the homepage) */
.igtax-vt-cta {
  margin: 1.75rem auto 0;
  font-size: 0.95rem;
  color: #2A3447;
}

.igtax-vt-cta a {
  color: #0B2E4A;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #C9A24D;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.igtax-vt-cta a:hover,
.igtax-vt-cta a:focus-visible {
  color: #15803D;
  border-bottom-color: #15803D;
}

/* ----- Tablet (641-900px): keep 2 columns but smaller cards ------------- */
@media (min-width: 641px) and (max-width: 900px) {
  .igtax-vt-card {
    max-width: 260px;
  }
  .igtax-vt-grid {
    gap: 1.25rem;
  }
}

/* ----- Mobile (<=640px): single column, narrower card --------------------- */
@media (max-width: 640px) {
  .igtax-video-testimonials {
    margin: 1.75rem auto 2rem;
  }
  .igtax-vt-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 320px;
  }
  .igtax-vt-card {
    max-width: 280px;
  }
  .igtax-vt-play {
    width: 64px;
    height: 64px;
  }
  .igtax-vt-play svg {
    width: 26px;
    height: 26px;
  }
  .igtax-vt-title {
    font-size: 1.35rem;
  }
}

/* ----- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .igtax-vt-facade,
  .igtax-vt-play,
  .igtax-vt-thumb {
    transition: none;
  }
  .igtax-vt-facade:hover,
  .igtax-vt-facade:focus-visible {
    transform: none;
  }
  .igtax-vt-facade:hover .igtax-vt-thumb {
    transform: none;
  }
  .igtax-vt-facade:hover .igtax-vt-play,
  .igtax-vt-facade:focus-visible .igtax-vt-play {
    transform: translate(-50%, -50%);
  }
}
