/*
 * Three tall cards in a row: a yellow quote card, a photo, and a blue
 * brand card with the yellow shape (the end of /meie/).
 *
 *   <div class="yb-trio">
 *     <div class="yb-trio__quote"><blockquote>…</blockquote><p class="yb-trio__author">…</p><p>button</p></div>
 *     <img class="yb-trio__image" …>
 *     <div class="yb-trio__brand"><p class="yb-h3">…</p><p class="yb-trio__label">…</p></div>
 *   </div>
 */
.yb-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--yb-space-m);
  min-height: 602px;
}

.yb-trio > * {
  border-radius: var(--yb-radius-panel);
}

.yb-trio__quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  background: var(--yb-color-accent);
  color: var(--yb-color-text);
}

.yb-trio__quote blockquote {
  margin: 0;
  font-size: var(--yb-size-lead);
  line-height: var(--yb-leading-lead);
}

.yb-trio__quote blockquote::before {
  content: "";
  display: block;
  width: 45px;
  height: 45px;
  margin-bottom: 72px;
  background: var(--yb-color-primary);
  -webkit-mask: url("../../icons/quote.svg") center / contain no-repeat;
  mask: url("../../icons/quote.svg") center / contain no-repeat;
  transform: rotate(180deg); /* opening quote marks */
}

.yb-trio__quote a:not(.yb-button) {
  color: var(--yb-color-cyan-dark);
}

.yb-trio__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yb-trio__quote p {
  margin: 0;
}

.yb-trio__quote blockquote p + p {
  margin-top: 15px;
}

.yb-trio__author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.yb-trio__author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.yb-trio__author span {
  display: flex;
  flex-direction: column;
  color: var(--yb-color-primary);
  font-size: 11px;
  font-weight: var(--yb-weight-medium);
  line-height: 1.8;
  text-transform: uppercase;
}

.yb-trio__author strong {
  text-transform: none;
  color: var(--yb-color-primary);
  font-size: var(--yb-size-h6);
  font-weight: var(--yb-weight-medium);
}

.yb-trio__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-trio__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: var(--yb-color-primary);
  color: var(--yb-color-accent);
  overflow: hidden;
}

.yb-trio__brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 94%;
  height: 55%;
  background: var(--yb-color-accent);
  -webkit-mask: url("/wp-content/uploads/2025/02/blog-path-mask.svg") right bottom / contain no-repeat;
  mask: url("/wp-content/uploads/2025/02/blog-path-mask.svg") right bottom / contain no-repeat;
}

.yb-trio__brand .yb-h3 {
  margin: 0;
  color: var(--yb-color-accent);
}

.yb-trio__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: var(--yb-weight-medium);
  text-transform: uppercase;
}

.yb-trio__label::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--yb-color-accent);
  -webkit-mask: url("../../icons/asterisk.svg") center / contain no-repeat;
  mask: url("../../icons/asterisk.svg") center / contain no-repeat;
}

@media (max-width: 1024px) {
  .yb-trio {
    min-height: 0;
  }

  .yb-trio__quote,
  .yb-trio__brand {
    padding: 20px;
  }

  .yb-trio__image {
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .yb-trio {
    grid-template-columns: 1fr;
  }

  .yb-trio__image {
    min-height: 60vh;
  }

  .yb-trio__brand {
    min-height: 315px;
  }
}
