/* Hero */
.hero {
  --hero-art-reserve: 100vw;
  --hero-inset: max(24px, 12vw);
  --hero-art-pos: 50% 50%;

  position: relative;
  isolation: isolate;
  background-color: var(--c-cream);
}

/* Arte */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: contain;
  object-position: center top;
}

/* Conteúdo */
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: min(100vh, calc(var(--hero-art-reserve) + 26rem));
  min-height: min(100svh, calc(var(--hero-art-reserve) + 26rem));
  padding:
    calc(var(--hero-art-reserve) + clamp(16px, 4vw, 28px))
    clamp(20px, 6vw, 32px)
    clamp(28px, 7vw, 52px);
}

.hero__content {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  text-align: center;}

.hero__logo {
  display: none;
}

.hero__eyebrow {
  font-size: clamp(12px, .6rem + .35vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-wine);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 400;
  font-size: min(clamp(2.125rem, .8rem + 3.2vw, 3.75rem), 8vw);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--c-wine);
  text-wrap: balance;
  margin-bottom: clamp(16px, 1.8vw, 26px);
}

.hero__title-strong {
  font-weight: 700;
}

.hero__title-accent {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: max(1.5px, .035em);
  text-underline-offset: .13em;
  text-decoration-color: currentColor;
}

.hero__text {
  max-width: 32rem;
  margin-inline: auto;
  font-size: clamp(1rem, .9rem + .32vw, 1.125rem);
  line-height: 1.78;
  color: var(--c-ink);
  text-wrap: pretty;
  margin-bottom: clamp(26px, 3vw, 38px);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.6vw, 22px);
  min-height: 58px;
  padding: 6px 6px 6px clamp(24px, 2.2vw, 32px);
  border-radius: var(--radius-pill);
  background-color: var(--c-copper);
  color: var(--c-on-copper);
  font-size: clamp(.875rem, .82rem + .2vw, 1rem);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 26px -16px rgba(16, 16, 18, .5);
  transition:
    background-color .28s var(--ease-soft),
    transform .28s var(--ease-soft),
    box-shadow .28s var(--ease-soft);
}

.hero__cta-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(251, 248, 245, .92);
  color: var(--c-ink);
  transition:
    background-color .28s var(--ease-soft),
    transform .28s var(--ease-soft);
}

@media (hover: hover) {
  .hero__cta:hover {
    background-color: var(--c-copper-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(16, 16, 18, .55);
  }
  .hero__cta:hover .hero__cta-icon {
    background-color: var(--c-cream);
    transform: translate(2px, -2px);
  }
}

.hero__cta:active { transform: translateY(0); }

.hero__support {
  margin-top: clamp(16px, 1.8vw, 24px);
  font-size: clamp(14px, .82rem + .12vw, 15px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-ink);
}

@media (max-width: 599.98px) {
  .hero__inner { padding-bottom: 20px; }

  .hero__text {
    line-height: 1.7;
    margin-bottom: 22px;
  }
}

@media (min-width: 600px) and (max-width: 899.98px) {
  .hero { --hero-art-reserve: min(100vw, 540px); }

  .hero__media {
    right: auto;
    left: 50%;
    width: min(100%, 540px);
    transform: translateX(-50%);
  }

  .hero__content {
    max-width: 540px;
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  .hero__eyebrow { display: none; }

  .hero__logo {
    display: block;
    width: clamp(150px, 11.5vw, 205px);
    aspect-ratio: 1041 / 489;
    margin-bottom: clamp(20px, 2vw, 32px);
    background: url("../img/LOGO.webp") no-repeat left center / contain;
  }

  .hero__media img {
    object-fit: cover;
    object-position: var(--hero-art-pos);
  }

  .hero__inner {
    align-items: center;
    min-height: clamp(470px, 44.27vw, 100svh);
    padding: clamp(44px, 4.2vw, 76px) var(--hero-inset);
  }

  .hero__content {
    max-width: clamp(400px, 32vw, 620px);
    margin-inline: 0;
    text-align: left;
  }

  .hero__text {
    max-width: 32rem;
    margin-inline: 0;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .hero { --hero-inset: max(24px, 7vw); }

  .hero__inner { padding-block: clamp(36px, 4vw, 52px); }

  .hero__content { max-width: 40vw; }

  .hero__title { font-size: min(clamp(2.15rem, .9rem + 2.4vw, 2.6rem), 3.5vw); }

  .hero__text { font-size: 1rem; line-height: 1.72; }
}

@media (min-width: 1200px) {
  .hero__inner { padding-block: clamp(40px, 3.6vw, 68px); }

  .hero__content { max-width: clamp(460px, 38vw, 700px); }

  .hero__eyebrow {
    font-size: 15px;
    margin-bottom: clamp(16px, 1.4vw, 24px);
  }

  .hero__title { font-size: min(clamp(2.75rem, .9rem + 3.5vw, 4rem), 3.5vw); }

  .hero__text {
    max-width: 36rem;
    font-size: clamp(1.0625rem, .95rem + .35vw, 1.1875rem);
  }

  .hero__cta {
    min-height: 62px;
    font-size: 1.0625rem;
  }

  .hero__cta-icon {
    width: 46px;
    height: 46px;
  }

  .hero__support { font-size: 16px; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__content > * {
  animation: heroFadeUp .65s var(--ease-soft) backwards;
}

.hero__logo,
.hero__eyebrow { animation-delay: .05s; }
.hero__title   { animation-delay: .12s; }
.hero__text    { animation-delay: .20s; }
.hero__cta     { animation-delay: .28s; }
.hero__support { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .hero__content > * { animation: none; }
}
