/* ==========================================================================
   Section: About Us — Figma 69:742
   Text block, then a 1240px video poster overlapping a 439px dark band.
   ========================================================================== */

.trustav-about {
  padding-block: 0;
}

/* --- Top ----------------------------------------------------------------- */
.trustav-about__top {
  padding-block: clamp(3rem, 6vw, 5.625rem) clamp(2.5rem, 5vw, 4.375rem);
  background-color: var(--c-white);
}

.trustav-about__grid {
  display: grid;
  grid-template-columns: 450fr 474fr;
  gap: clamp(3rem, 20vw, 316px);
  align-items: start;
}

.trustav-about__left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Figma: Lora 52. */
.trustav-about__title {
  margin: 0;
  color: var(--c-black);
}

.trustav-about__cert {
  display: flex;
  align-items: center;
}

.trustav-about__cert-text {
  max-width: 8.4rem;
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-neutral-1);
}

.trustav-about__cert-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.trustav-about__cert-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Figma overlays a 25% scrim so the icon reads on any certificate image. */
.trustav-about__cert-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 25%);
}

.trustav-about__cert-icon {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  place-items: center;
}

.trustav-about__cert-icon svg {
  width: 20px;
  height: 20px;
}

.trustav-about__right {
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-neutral-1);
}

.trustav-about__right p {
  margin: 0;
}

/* --- Bottom -------------------------------------------------------------- */
.trustav-about__bottom {
  position: relative;
  background-color: var(--c-white);
}

/* Dark band filling the lower part of the block, behind the poster. */
.trustav-about__band {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 56%;
  background-color: var(--c-primary);
}

.trustav-about__video {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  /* Held here, not on the poster, so the block keeps its height while the
     embed loads and never collapses mid-swap. */
  aspect-ratio: 1240 / 697;
}

.trustav-about__poster {
  grid-area: 1 / 1;
  margin: 0;
  width: 100%;
  aspect-ratio: 1240 / 697;
  overflow: hidden;
  background-color: var(--c-neutral-4);
}

.trustav-about__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trustav-about__play {
  grid-area: 1 / 1;
  z-index: var(--z-base);
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--c-accent); /* Figma 69:742 — the play disc is accent, as on Výroba */
  transition: transform var(--dur) var(--ease);
}

.trustav-about__play:hover,
.trustav-about__play:focus-visible {
  transform: scale(1.08);
}

.trustav-about__play svg {
  width: 70px;
  height: 70px;
}

/* The embed fades in over the poster once it has loaded — see main.js. */
.trustav-about__video iframe {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.trustav-about__video[data-trustav-video-state="ready"] iframe {
  opacity: 1;
}

/* The play control goes as soon as it is pressed; the poster only once the
   embed is actually there to cover it. */
.trustav-about__video[data-trustav-video-state] .trustav-about__play {
  opacity: 0;
  pointer-events: none;
}

/* opacity < 1 makes the poster its own stacking layer, painted above the
   later iframe, so without this it silently swallowed every click on the
   player (pause, seek, fullscreen). */
.trustav-about__video[data-trustav-video-state="ready"] .trustav-about__poster {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .trustav-about__video iframe,
  .trustav-about__video[data-trustav-video-state="ready"] .trustav-about__poster {
    transition: none;
  }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .trustav-about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .trustav-about__band {
    height: 40%;
  }
}

@media (max-width: 560px) {
  .trustav-about__play,
  .trustav-about__play svg {
    width: 52px;
    height: 52px;
  }
}
