/* ==========================================================================
   HOME · Container 01 · Hero  (v0.42.0)
   Calibrado sobre a referência aprovada (1920×1080). Medidas em vw para manter
   a proporção; verticalmente o bloco é ancorado pela base da tela.
   Branco sobre laranja: composição definida pela marca (contraste decorativo
   alto no título grande; ver observações no README da v0.42.0).
   ========================================================================== */

.uos-hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 1400px;
  overflow: hidden;
  background: var(--uos-orange);
  color: var(--uos-white);
}

/* Seletor reforçado + !important: o Elementor aplica `.elementor img { height: auto; max-width: 100% }`
   e deixava a foto com a proporção natural (16:9), sobrando faixa laranja abaixo dela em telas
   que não são 16:9. A foto precisa sempre preencher todo o Hero (cover). */
.uos-hero > img.uos-hero__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 72% 40%;
  animation: uos-hero-bg 2200ms var(--uos-ease) both;
}

.uos-hero__content {
  position: absolute;
  bottom: 20.3%;
  left: var(--uos-gutter);
  max-width: 58vw;
}

.uos-hero__eyebrow {
  margin: 0 0 1.26vw;
  font-family: var(--uos-font);
  font-size: clamp(11px, 1.17vw, 26px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.uos-hero__title {
  margin: 0 0 4.46vw -0.16vw;
  font-family: var(--uos-font-display);
  font-size: clamp(2.2rem, 3.31vw, 5.2rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.244;
}

.uos-hero__line {
  display: block;
}

.uos-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21.4vw;
  min-height: 3.65vw;
  padding: 0 2.2vw;
  margin-left: 0.26vw;
  border: 2px solid var(--uos-white);
  border-radius: var(--uos-pill);
  color: var(--uos-white);
  font-family: var(--uos-font);
  font-size: clamp(12px, 1.04vw, 22px);
  font-weight: 400;
  letter-spacing: 0.108em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 240ms ease, color 240ms ease, transform 240ms var(--uos-ease);
}

.uos-hero__cta:hover,
.uos-hero__cta:focus-visible {
  background: var(--uos-white);
  color: var(--uos-red);
}

.uos-hero__cta:active {
  transform: scale(0.98);
}

.uos-hero__cta:focus-visible {
  outline: 2px solid var(--uos-white);
  outline-offset: 4px;
}

.uos-hero__group {
  position: absolute;
  right: 5.62vw;
  bottom: 9.6%;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.55vw;
}

.uos-hero__group-label {
  font-family: var(--uos-font);
  font-size: clamp(9px, 0.73vw, 16px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.uos-hero__group-logo {
  display: block;
  line-height: 0;
}

.uos-hero__group-logo img {
  width: 12.3vw;
  min-width: 108px;
  height: auto;
}

/* ---------- Entrada (suave; respeita prefers-reduced-motion) ---------- */

@keyframes uos-hero-bg {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

@keyframes uos-hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.6vw);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uos-hero__eyebrow,
.uos-hero__line,
.uos-hero__cta,
.uos-hero__group {
  animation: uos-hero-rise 900ms var(--uos-ease) both;
}

.uos-hero__eyebrow {
  animation-delay: 120ms;
}

.uos-hero__line:nth-child(1) {
  animation-delay: 220ms;
}

.uos-hero__line:nth-child(2) {
  animation-delay: 320ms;
}

.uos-hero__line:nth-child(3) {
  animation-delay: 420ms;
}

.uos-hero__cta {
  animation-delay: 560ms;
}

.uos-hero__group {
  animation-delay: 760ms;
}

@media (prefers-reduced-motion: reduce) {
  .uos-hero__bg,
  .uos-hero__eyebrow,
  .uos-hero__line,
  .uos-hero__cta,
  .uos-hero__group {
    animation: none;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .uos-hero {
    min-height: 600px;
  }

  .uos-hero__content {
    bottom: 17%;
    max-width: 92vw;
  }

  .uos-hero__eyebrow {
    margin-bottom: 3.6vw;
    font-size: clamp(11px, 1.9vw, 16px);
  }

  .uos-hero__title {
    margin-bottom: 5.6vw;
    font-size: clamp(2rem, 4.9vw, 3.4rem);
  }

  .uos-hero__cta {
    min-width: 0;
    min-height: 56px;
    padding: 0 32px;
    font-size: 14px;
  }

  .uos-hero__group {
    right: var(--uos-gutter);
    bottom: 4.5%;
    gap: 6px;
  }

  .uos-hero__group-label {
    font-size: 10px;
  }
}

/* ---------- Celular ---------- */

@media (max-width: 760px) {
  .uos-hero {
    display: flex;
    height: auto;
    min-height: 100svh;
    max-height: none;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* legibilidade do texto sobre a foto, somente no retrato */
  .uos-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to top, rgba(150, 34, 15, 0.62) 0%, rgba(185, 44, 19, 0.28) 46%, rgba(185, 44, 19, 0) 72%);
    content: "";
    pointer-events: none;
  }

  .uos-hero > img.uos-hero__bg {
    object-position: 76% 30%;
  }

  .uos-hero__content {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: none;
    padding: 0 var(--uos-gutter);
  }

  .uos-hero__eyebrow {
    margin-bottom: 14px;
    font-size: 11.5px;
    text-wrap: balance; /* v0.88.3 · eyebrow com quatro produtos: quebra em duas linhas equilibradas, sem palavra solta */
  }

  .uos-hero__title {
    margin-bottom: 26px;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.16;
    text-wrap: balance;
  }

  .uos-hero__line {
    display: inline;
  }

  .uos-hero__line::after {
    content: " ";
  }

  .uos-hero__cta {
    width: 100%;
    min-height: 54px;
    margin-left: 0;
  }

  .uos-hero__group {
    position: relative;
    right: auto;
    bottom: auto;
    align-items: flex-start;
    padding: 30px var(--uos-gutter) 28px;
  }
}
