/* Estilos específicos da página Jurisbancário. */
.juris-page main {
  overflow: hidden;
}

.juris-hero {
  padding: calc(var(--header-height) + clamp(2rem, 4vw, 4rem)) var(--page-gutter) clamp(5rem, 8vw, 9rem);
  background: var(--ink);
}

.juris-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.juris-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: color 180ms ease;
}

.juris-home-link:hover,
.juris-home-link:focus-visible {
  color: #fff;
}

.juris-home-link svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.juris-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 9rem);
  padding: clamp(4.5rem, 8vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
}

.juris-hero__copy {
  max-width: 54rem;
}

.juris-hero__copy .eyebrow,
.juris-overview .eyebrow {
  margin: 0 0 1.4rem;
}

.juris-hero h1,
.juris-overview h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1;
  text-wrap: balance;
}

.juris-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.85rem, 6.1vw, 7.5rem);
}

.juris-hero h1 em {
  color: #d7646b;
  font-weight: 400;
}

.juris-hero__lead {
  max-width: 37rem;
  margin: clamp(2rem, 3.2vw, 3rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}

.juris-hero .text-link {
  margin-top: 2rem;
}

.juris-hero__identity {
  align-self: center;
  min-width: 0;
  padding: clamp(2rem, 4vw, 4rem);
  border-top: 3px solid var(--red);
  background: var(--paper-bright);
  color: var(--ink);
}

.juris-hero__identity img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.juris-hero__brand-link,
.juris-hero__media-link {
  display: block;
  color: inherit;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.juris-hero__brand-link:hover,
.juris-hero__media-link:hover { opacity: 0.94; }

.juris-hero__brand-link:focus-visible,
.juris-hero__media-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0.25rem;
}

.juris-hero__identity span {
  display: block;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  color: #625f59;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.juris-hero__media {
  margin: 0;
  padding: clamp(1.5rem, 5vw, 5rem);
  background: #e9e5dd;
  color: var(--ink);
}

.juris-hero__media-link {
  width: 75%;
  max-width: 48.75rem;
  margin: 0 auto;
}

.juris-hero__media-link img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.juris-hero__media figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: 65rem;
  margin: clamp(1.25rem, 3vw, 3rem) auto 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-light);
  color: #625f59;
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.juris-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(5rem, 8vw, 8rem) var(--page-gutter);
  background: var(--paper-bright);
  color: var(--ink);
}

.juris-overview h2 {
  max-width: 17ch;
  font-size: clamp(2.9rem, 4.6vw, 5.25rem);
}

.juris-overview h2 em {
  color: var(--red);
  font-weight: 400;
}

.juris-overview__lead {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: rgba(18, 18, 17, 0.72);
  line-height: 1.8;
}

.juris-overview__note {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: #625f59;
  font-size: 0.9rem;
  line-height: 1.7;
}

.juris-overview__resource {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-light);
}

.juris-overview__resource:last-child {
  padding-bottom: 0;
}

.juris-overview__resource h3 {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.juris-overview__resource p {
  max-width: 36rem;
  margin: 0;
  color: rgba(18, 18, 17, 0.68);
  line-height: 1.75;
}

.juris-hero__media :focus-visible {
  outline-color: var(--red);
}

@media (max-width: 70rem) {
  .juris-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.75fr);
    gap: 3rem;
  }

  .juris-hero h1 {
    font-size: clamp(3.4rem, 6.3vw, 5.3rem);
  }
}

@media (max-width: 52rem) {
  .juris-hero__grid,
  .juris-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .juris-hero__grid {
    gap: 3.5rem;
  }

  .juris-hero h1 {
    font-size: clamp(3.4rem, 8.7vw, 5.3rem);
  }

  .juris-hero__identity {
    max-width: 35rem;
  }

  .juris-hero__media-link {
    width: 90%;
  }

  .juris-overview {
    gap: 2.5rem;
  }
}

@media (max-width: 35rem) {
  .juris-hero {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 5rem;
  }

  .juris-hero__top > span {
    display: none;
  }

  .juris-hero__grid {
    padding: 4rem 0 3.5rem;
  }

  .juris-hero h1 {
    font-size: clamp(3rem, 12.8vw, 4.3rem);
  }

  .juris-hero__identity {
    padding: 2rem;
  }

  .juris-hero__media {
    padding: 2rem 1rem;
  }

  .juris-overview {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .juris-overview h2 {
    font-size: clamp(2.7rem, 12.3vw, 3.65rem);
  }
}

@media (max-width: 48rem) {
  .juris-hero__copy {
    text-align: center;
  }

  .juris-hero h1,
  .juris-hero__lead,
  .juris-overview h2 {
    margin-right: auto;
    margin-left: auto;
  }

  .juris-hero .text-link {
    display: flex;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
  }

  .juris-hero__lead {
    text-align: left;
  }

  .juris-hero__identity,
  .juris-overview__intro > .eyebrow,
  .juris-overview h2 {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .juris-home-link {
    transition: none;
  }
}
