/* ==========================================================================
   Section: Service hero — Figma 92:906
   800px copy column on the alternate ground beside a 640px image.
   ========================================================================== */

.trustav-service-hero {
  display: grid;
  grid-template-columns: minmax(0, 800fr) minmax(0, 640fr); /* Figma 800 / 640 */
  align-items: stretch;
  padding: 0;
}

.trustav-service-hero__main {
  display: flex;
  flex-direction: column;
  gap: 60px;
  min-height: 800px; /* Figma 92:905 */
  padding-block-end: var(--space-4xl);
  background-color: var(--c-bg-alt);
}

/* The breadcrumb strip spans the copy column, not the image. */
.trustav-service-hero .trustav-breadcrumbs {
  flex: 0 0 auto;
}

.trustav-service-hero__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3xl);
  /* 600px of copy (Figma 148:1645) plus the gutter on each side. */
  width: min(calc(600px + 2 * var(--gutter)), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.trustav-service-hero__text {
  display: flex;
  flex-direction: column;
  gap: 54px; /* Figma 91:897 */
}

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

.trustav-service-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 27px; /* Figma 91:896 */
}

.trustav-service-hero__title {
  margin: 0;
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--c-text);
}

.trustav-service-hero__intro {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-text-muted);
}

.trustav-service-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trustav-service-hero__buttons .trustav-btn {
  min-width: 222px; /* Figma 91:863 */
}

.trustav-service-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trustav-service-hero__figure {
  margin: 0;
  height: 100%;
}

.trustav-service-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .trustav-service-hero {
    grid-template-columns: 1fr;
  }

  .trustav-service-hero__main {
    min-height: 0;
    padding-block-end: var(--space-3xl);
  }

  .trustav-service-hero__content {
    width: 100%;
    max-width: var(--container);
  }

  .trustav-service-hero__figure {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .trustav-service-hero__text {
    gap: var(--space-xl);
  }

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

/* --- Standard height — Figma 119:3071 (Team, Production) -----------------
   Same split, a shorter copy column. The image follows because the grid
   rows stretch.                                                            */
.trustav-service-hero--standard .trustav-service-hero__main {
  min-height: 590px; /* Figma 119:3071 */
}

@media (max-width: 1024px) {
  .trustav-service-hero--standard .trustav-service-hero__main {
    min-height: 0;
  }
}

/* --- Fit content — Figma 148:1636 (Montáž) ------------------------------- */
.trustav-service-hero--auto .trustav-service-hero__main {
  min-height: 0;
}

/* The copy sets the height; the image crops to it rather than stretching
   the row to its own aspect ratio. */
@media (min-width: 1025px) {
  .trustav-service-hero--auto .trustav-service-hero__figure {
    position: relative;
  }

  .trustav-service-hero--auto .trustav-service-hero__figure img {
    position: absolute;
    inset: 0;
  }
}

/* --- Feature list — Figma 148:1759 ----------------------------------------
   Two columns 30px apart; each item sits between hairlines.               */
.trustav-service-hero__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px; /* Figma 148:1759 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.trustav-service-hero__feature {
  display: flex;
  flex-direction: column;
  gap: 7px; /* Figma 148:1714 */
  padding-block: 20px; /* Figma 148:1712 */
  border-block-start: var(--border);
}

.trustav-service-hero__feature:nth-last-child(-n + 2) {
  border-block-end: var(--border);
}

.trustav-service-hero__feature-title {
  display: flex;
  align-items: center;
  gap: 9px; /* Figma 148:1715 */
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-text);
}

.trustav-service-hero__feature-icon {
  flex: 0 0 auto;
  color: var(--c-accent);
}

.trustav-service-hero__feature-icon svg {
  width: 18px; /* Figma 148:1716 */
  height: 18px;
}

.trustav-service-hero__feature-text {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-text-muted);
}

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

  .trustav-service-hero__feature:nth-last-child(-n + 2) {
    border-block-end: 0;
  }

  .trustav-service-hero__feature:last-child {
    border-block-end: var(--border);
  }
}
