/* Video testimonials — source: sections/VideoTestimonials.tsx
 *
 * The source hand-rolls a click-to-load facade (thumbnail + play button, iframe
 * injected on click). Elementor's Video widget does exactly that natively via
 * lazy_load + show_image_overlay, so the widget does the work and this file only
 * restyles its markup to match.
 */

#video-testimonials {
  background: var(--page-panel);
  position: relative;
  overflow: hidden;
}

#video-testimonials .lt-vt-inner {
  position: relative;
  z-index: 1;
}

/* Blob — static here: the source gives this one no animation. */
#video-testimonials .lt-vt-blob {
  bottom: -60px;
  inset-inline-end: -60px;
  width: 380px;
  height: 300px;
  border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%;
  background: rgba(41, 128, 242, 0.07);
}

/* ---- Section head ---------------------------------------------------- */

/* A deliberate override of the tokens pill: this section's eyebrow is blue. */
#video-testimonials .lt-eyebrow {
  color: var(--brand-primary);
  background: rgba(41, 128, 242, 0.08);
  box-shadow: inset 0 0 0 1px rgba(41, 128, 242, 0.18);
}

/* Elementor forces .elementor-heading-title to line-height:1, which would
   flatten the pill to 25px against the source's 33px. */
#video-testimonials .lt-eyebrow .elementor-heading-title {
  line-height: 1.6;
}

#video-testimonials .lt-vt-h2 {
  margin-top: 18px;
}

/* tokens.css carries no h2 font-size — the source gets it from styles.css. */
#video-testimonials .lt-vt-h2 .elementor-heading-title {
  font-size: var(--t-h2);
  font-weight: 900;
  line-height: 1.05;
  color: var(--page-fg-strong);
  margin: 0;
}

#video-testimonials .lt-vt-sub {
  margin-top: 14px;
}

#video-testimonials .lt-vt-sub p {
  font-size: var(--t-lead);
  color: var(--page-fg-muted);
  margin: 0;
}

/* ---- Grid ------------------------------------------------------------ */

/* Elementor containers are display:flex; the source's layout is a real grid. */
#video-testimonials .lt-vt-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

/* ---- Card ------------------------------------------------------------ */

#video-testimonials .lt-vt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ---- Media ----------------------------------------------------------- */

/* Elementor already derives 16/9 from aspect_ratio's default; state it anyway
   so the card's height never depends on that default staying put. */
#video-testimonials .lt-vt-media .elementor-wrapper {
  aspect-ratio: 16 / 9;
  background: #0a1525;
}

/* The scrim the source lays over its thumbnail. Elementor paints the poster as
   a background-image on this same element, so it has to be a pseudo-element. */
#video-testimonials .lt-vt-media .elementor-custom-embed-image-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 28, 0.35);
}

#video-testimonials .lt-vt-media .elementor-custom-embed-play {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 8px 28px rgba(41, 128, 242, 0.45);
  transition: transform var(--dur) var(--ease);
}

/*
 * Elementor centres this button with
 *   transform: translate(calc(-50% * var(--direction-multiplier)), -50%)
 * so a bare `transform: scale(1.1)` on hover would drop the translate and fling
 * the button to the corner. Restate the translate alongside the scale.
 */
#video-testimonials .lt-vt-media .elementor-custom-embed-play:hover {
  transform: translate(calc(-50% * var(--direction-multiplier)), -50%) scale(1.1);
}

/* Elementor ships the play glyph at 100px / opacity .8 with a text-shadow. */
#video-testimonials .lt-vt-media .elementor-custom-embed-play i {
  font-size: 22px;
  line-height: 1;
  color: #fff;
  opacity: 1;
  text-shadow: none;
}

/* ---- Footer ---------------------------------------------------------- */

#video-testimonials .lt-vt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

#video-testimonials .lt-vt-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--page-fg-strong);
}

#video-testimonials .lt-vt-result {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(41, 128, 242, 0.08);
  border: 1px solid rgba(41, 128, 242, 0.15);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  white-space: nowrap;
}

@media (max-width: 820px) {
  #video-testimonials .lt-vt-grid {
    grid-template-columns: 1fr !important;
  }

  /* Source: styles.css tightens section-head line length below 820. */
  #video-testimonials .lt-section-head p {
    max-width: 480px;
    margin-inline: auto;
  }
}
