/* PR-VIBECURB-03 — hero como folha de entrada do Dossiê Vivo.
   Esta camada é carregada por último e governa somente o hero. */

.vb-hero {
  min-height: max(760px, calc(100svh - var(--vb-header-h)));
  overflow: clip;
}

.vb-hero__poster {
  min-height: inherit;
  padding-block: clamp(1rem, 2.2vh, 1.6rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto minmax(190px, auto) auto;
  column-gap: clamp(.65rem, 1.15vw, 1.15rem);
  row-gap: 0;
}

.vb-hero__mast {
  grid-column: 1 / -1;
  grid-row: 1;
}

.vb-hero .vb-kicker {
  grid-column: 1 / 5;
  grid-row: 2;
  align-self: end;
  margin-block: clamp(1.1rem, 3vh, 2.5rem) .65rem;
}

.vb-hero h1 {
  grid-column: 1 / 9;
  grid-row: 3;
  max-width: none;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

.vb-hero h1 span {
  width: fit-content;
  max-width: 100%;
}

.vb-hero h1 span:nth-child(2) {
  margin-left: clamp(2rem, 7.5vw, 7.25rem);
}

.vb-hero h1 span:nth-child(3) {
  margin-left: clamp(.4rem, 1.4vw, 1.4rem);
}

.vb-hero__lower {
  grid-column: 1 / 7;
  grid-row: 4;
  align-self: end;
  width: 100%;
  max-width: 700px;
  padding-top: clamp(1.2rem, 2.8vh, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, .8fr);
  gap: 1rem clamp(1rem, 2vw, 2rem);
  border-top: 1px solid color-mix(in srgb, currentColor 38%, transparent);
}

.vb-hero__reading-block {
  grid-column: 1 / -1;
}

.vb-hero__action-block {
  grid-column: 1;
}

.vb-hero__teacher-path {
  grid-column: 2;
  align-self: stretch;
  margin: 0;
  padding-left: clamp(.85rem, 1.5vw, 1.35rem);
  border-left: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}

.vb-hero__folio-label {
  display: block;
  margin-bottom: .55rem;
  font-family: var(--vb-font-sans);
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .56;
}

.vb-hero__actions .vb-button,
.vb-hero__teacher-path a {
  position: relative;
  z-index: 1;
}

.vb-evidence-sheet--hero {
  position: relative;
  inset: auto;
  grid-column: 9 / -1;
  grid-row: 3 / 5;
  align-self: start;
  justify-self: end;
  width: min(100%, 440px);
  margin-top: clamp(13rem, 23vh, 17rem);
  transform: rotate(-1.6deg);
  transform-origin: center;
  z-index: 3;
}

.vb-evidence-sheet__index {
  position: absolute;
  left: -2.05rem;
  top: 1rem;
  writing-mode: vertical-rl;
  padding: .65rem .42rem;
  background: var(--vb-teal);
  color: var(--vb-ink);
  font-family: var(--vb-font-sans);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vb-hero__signatures {
  position: relative;
  inset: auto;
  grid-column: 9 / -1;
  grid-row: 5;
  justify-self: end;
  align-self: end;
  margin-top: .9rem;
}

.vb-hero__signatures img {
  opacity: .82;
}

.vb-trust-line {
  grid-column: 1 / 8;
  grid-row: 5;
  align-self: end;
  margin: 1rem 0 0;
}

@media (min-width: 1480px) and (min-height: 960px) {
  .vb-hero h1 {
    font-size: clamp(5.8rem, 7.15vw, 8.2rem);
  }

  .vb-evidence-sheet--hero {
    grid-column: 9 / -1;
    width: min(100%, 470px);
    margin-top: clamp(14rem, 23vh, 18rem);
  }
}

@media (min-width: 1181px) and (max-height: 950px) {
  .vb-hero {
    min-height: 760px;
  }

  .vb-hero .vb-kicker {
    margin-top: 1rem;
  }

  .vb-hero h1 {
    font-size: clamp(4.15rem, 6.25vw, 6.35rem);
    line-height: .84;
  }

  .vb-hero__lower {
    padding-top: 1.1rem;
  }

  .vb-evidence-sheet--hero {
    width: min(100%, 410px);
    margin-top: clamp(10.5rem, 20vh, 13.5rem);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .vb-hero {
    min-height: auto;
  }

  .vb-hero__poster {
    min-height: auto;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto auto;
    padding-bottom: 1.75rem;
  }

  .vb-hero .vb-kicker {
    grid-column: 1 / 4;
  }

  .vb-hero h1 {
    grid-column: 1 / -1;
    font-size: clamp(4.25rem, 7.9vw, 6.6rem);
  }

  .vb-hero h1 span:nth-child(2) {
    margin-left: clamp(1.5rem, 5vw, 4rem);
  }

  .vb-hero h1 span:nth-child(3) {
    margin-left: clamp(.25rem, 1vw, .8rem);
  }

  .vb-hero__lower {
    grid-column: 1 / 6;
    grid-row: 4;
    max-width: 680px;
    margin-top: clamp(1.5rem, 3vh, 2.25rem);
  }

  .vb-evidence-sheet--hero {
    grid-column: 3 / -1;
    grid-row: 5;
    width: min(72%, 520px);
    margin-top: 1.75rem;
  }

  .vb-trust-line {
    grid-column: 1 / 6;
    grid-row: 6;
  }

  .vb-hero__signatures {
    grid-column: 6 / -1;
    grid-row: 6;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .vb-hero {
    min-height: auto;
  }

  .vb-hero__poster {
    min-height: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto auto auto;
    padding-bottom: 1.75rem;
  }

  .vb-hero .vb-kicker {
    grid-column: 1 / 4;
  }

  .vb-hero h1 {
    grid-column: 1 / -1;
    font-size: clamp(3.8rem, 10.3vw, 5.8rem);
  }

  .vb-hero h1 span:nth-child(2) {
    margin-left: clamp(.8rem, 3.4vw, 2.1rem);
  }

  .vb-hero h1 span:nth-child(3) {
    margin-left: clamp(.15rem, 1vw, .55rem);
  }

  .vb-hero__lower {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: none;
    margin-top: 1.75rem;
  }

  .vb-evidence-sheet--hero {
    grid-column: 2 / -1;
    grid-row: 5;
    width: min(88%, 520px);
    margin-top: 1.75rem;
  }

  .vb-trust-line {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .vb-hero__signatures {
    grid-column: 1 / -1;
    grid-row: 7;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .vb-hero {
    min-height: auto;
    overflow: hidden;
  }

  .vb-hero__poster {
    min-height: auto;
    display: block;
    padding-block: .9rem 1.75rem;
  }

  .vb-hero__mast {
    margin-bottom: clamp(1.75rem, 8vw, 2.4rem);
  }

  .vb-hero .vb-kicker {
    margin: 0 0 .65rem;
  }

  .vb-hero h1 {
    font-size: clamp(3rem, 14.2vw, 4.45rem);
    line-height: .82;
    letter-spacing: -.06em;
    text-wrap: initial;
  }

  .vb-hero h1 span {
    width: auto;
    overflow-wrap: normal;
    word-break: normal;
  }

  .vb-hero h1 span:nth-child(2) {
    margin-left: clamp(.35rem, 2.4vw, .75rem);
  }

  .vb-hero h1 span:nth-child(3) {
    margin-left: 0;
  }

  .vb-hero__lower {
    width: 100%;
    max-width: none;
    margin-top: 1.75rem;
    display: block;
  }

  .vb-hero__action-block,
  .vb-hero__teacher-path {
    margin-top: 1.35rem;
  }

  .vb-hero__teacher-path {
    padding: 1.2rem 0 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  }

  .vb-hero__actions {
    width: 100%;
  }

  .vb-hero__actions .vb-button {
    width: 100%;
  }

  .vb-evidence-sheet--hero {
    width: calc(100% - 2.3rem);
    margin: 2rem 0 0 auto;
    transform: rotate(-.65deg);
  }

  .vb-evidence-sheet__index {
    left: -1.8rem;
  }

  .vb-hero__signatures {
    justify-content: flex-start;
    margin-top: 1.35rem;
  }

  .vb-trust-line {
    margin-top: 1rem;
  }
}

@media (max-width: 380px) {
  .vb-hero h1 {
    font-size: clamp(2.75rem, 13.6vw, 3.35rem);
  }

  .vb-hero__mast {
    font-size: .55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-evidence-sheet--hero {
    transform: none;
  }
}
