/* ==========================================================================
   Section: Feature split — Figma 94:2448 / 94:2462 / 94:2474
   Two equal 590px columns, 60px apart, image 590x453. The CTA sits at the
   bottom of the text column. Padding 90px block, container 100px inline.
   ========================================================================== */

.trustav-feature {
  padding-block: clamp(3rem, 6vw, 5.625rem);
}

.trustav-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px; /* Figma 94:2449 */
  align-items: stretch;
}

/* The figure is drawn first in the markup; the text column moves ahead of it
   when the image belongs on the right. */
.trustav-feature--image-right .trustav-feature__text {
  order: -1;
}

.trustav-feature__figure {
  /* Without a width, a text column taller than the image stretches the row,
     aspect-ratio turns that height into width and the image runs off-screen
     (EN/DE About and Production at 1024px). */
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 590 / 453;
  background-color: var(--c-neutral-4);
}

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

.trustav-feature__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.trustav-feature__head {
  display: flex;
  flex-direction: column;
  gap: 36px; /* Figma 94:2451 */
}

.trustav-feature__titles {
  display: flex;
  flex-direction: column;
  gap: 28px; /* Figma 94:2452 */
}

.trustav-feature__eyebrow {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: 0.31em; /* Figma 94:2453 — 3.72px on 12px */
  color: var(--c-accent);
  text-transform: uppercase;
}

.trustav-feature__title {
  margin: 0;
  font-size: var(--fs-h2);
  color: var(--c-black);
}

.trustav-feature__copy {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-neutral-1);
}

/* Figma 235:4184 — paragraphs 16px apart. */
.trustav-feature__copy p {
  margin: 0;
}

.trustav-feature__copy p + p {
  margin-block-start: 16px;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .trustav-feature__grid {
    gap: var(--space-2xl);
  }
}

@media (max-width: 900px) {
  .trustav-feature__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* One column reads image-first everywhere, so drop the flip. */
  .trustav-feature--image-right .trustav-feature__text {
    order: 0;
  }
}

/* Visit Production (122:3321) carries two buttons; the others carry one. */
.trustav-feature__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Figma 122:3321 — 234px pitch on 222px buttons. */
}

.trustav-feature__buttons .trustav-btn {
  min-width: 222px; /* Figma 122:3322 */
}

@media (max-width: 560px) {
  /* The text column aligns to flex-start, which shrinks a one-button row to
     the button's width, so the full-width rule below had nothing to fill. */
  .trustav-feature__buttons {
    align-self: stretch;
  }

  .trustav-feature__buttons .trustav-btn {
    flex: 1 1 100%;
  }
}
