/* Obrigado | Remodelação Glútea 360º — medidas, cores e espaçamentos copiados da página antiga (1440 e 390 px).
   A página antiga trocava de layout em 800 px. */

:root {
  --amarelo: #f0b731;
  --dourado: #f1b732;
  --vinho: #650000;
  --vinho-escuro: #3b0005;
  --vermelho: #ea5558;
  --verde: #6edd7b;
  --verde-hover: #56b361;
  --cinza: #bababa;
  --cinza-linha: #a3bac6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--vinho-escuro);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

/* como na página antiga: os espaços do texto contam na quebra de linha */
h1,
h2,
p,
.botao {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ---------- 1. Faixa de aviso ---------- */

.aviso {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28.91px 16px 32.3px;
  background: var(--amarelo);
  text-align: center;
}

.aviso__titulo {
  width: 540px;
  max-width: 100%;
  font-size: 24px;
  line-height: 33.6px;
  font-weight: 600;
  color: #870000;
}

.aviso__texto {
  width: 400px;
  max-width: 100%;
  font-size: 18px;
  line-height: 25.2px;
  color: #000;
}

/* ---------- 2. Vaga garantida ---------- */

.vaga {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 75.5px 16px 123.25px;
  background: var(--vinho) url(fundo-vaga.webp) 50% 50% / cover no-repeat;
  text-align: center;
}

.vaga__logo {
  width: 244.94px;
  height: auto;
  aspect-ratio: 400 / 178;
}

.vaga__titulo {
  width: 664px;
  max-width: 100%;
  margin-top: 59.69px;
  font-size: 36px;
  line-height: 50.4px;
  font-weight: 600;
}

.vaga__oficial {
  width: 629px;
  max-width: 100%;
  margin-top: 20.24px;
  font-size: 20px;
  line-height: 28px;
  color: var(--dourado);
}

/* caixa escura dos dados do evento: o fundo e a borda ficam a 33% (no ::before), os textos não */
.evento {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10.4px;
  width: 500px;
  max-width: 100%;
  margin: 44.05px 0 0;
  padding: 53.45px 16px 53.94px;
  list-style: none;
}

.evento::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--vermelho);
  border-radius: 30px;
  background: #000;
  opacity: .33;
}

.evento__item {
  display: flex;
  align-items: center;
  gap: 14.25px;
  font-size: 20px;
  line-height: 28px;
  text-align: left;
}

.evento__item img {
  flex: none;
  width: 20.72px;
  height: 20.72px;
}

.evento__item--data img {
  width: 19.75px;
}

/* pequenos desvios do original (o grupo ícone + texto não ficava exatamente no centro) */
.evento__item--data {
  margin-left: -2.6px;
}

.evento__item--horario {
  gap: 13.2px;
  margin-left: -6.8px;
}

.evento__item--local {
  margin-left: -3.8px;
}

/* caixa de borda verde com o botão da plataforma (a caixa termina no meio do botão) */
.plataforma {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 817px;
  max-width: 100%;
  margin-top: 59.48px;
  padding: 72.42px 16px 0;
  border: 1px solid var(--verde);
  border-radius: 30px;
}

.plataforma__texto,
.plataforma__ate-la {
  width: 584px;
  max-width: 100%;
  font-size: 22px;
  line-height: 30.8px;
  font-weight: 600;
}

.plataforma__ate-la {
  margin-top: 37.61px;
}

.plataforma__ate-la b {
  font-weight: 700;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 648px;
  max-width: calc(100% + 32px);
  min-height: 67.19px;
  margin: 52.39px 0 -34.6px;
  padding: 8px;
  border-radius: 100px;
  background: var(--verde);
  color: #000;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  text-decoration: none;
  /* na página antiga os botões não usavam a suavização fina das letras (por isso parecem mais encorpados) */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  transition: background-color .25s ease-out, color .25s ease-out;
}

.botao:hover,
.botao:active,
.botao:focus-visible {
  background: var(--verde-hover);
  color: #000;
}

.botao:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- 3. Rodapé ---------- */

.rodape {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 79.69px 16px 79.28px;
  background: var(--vinho-escuro);
  color: var(--cinza);
  font-size: 14px;
  line-height: 19.6px;
  text-align: center;
}

.rodape__logo {
  width: 284.27px;
  height: 33px;
}

.rodape__aviso {
  width: 400px;
  max-width: 100%;
  margin-top: 22.98px;
  font-size: 16px;
  line-height: 22.4px;
}

.rodape__aviso b {
  font-weight: 700;
}

.rodape__legal {
  width: 882px;
  max-width: 100%;
  margin-top: 11.24px;
}

.rodape__equipe {
  width: 882px;
  max-width: 100%;
  margin-top: 18.99px;
}

.rodape__linha {
  width: 960px;
  max-width: 100%;
  height: 0;
  margin: 50.03px 0 0;
  border: 0;
  border-top: 1px solid var(--cinza-linha);
}

.rodape__termos {
  width: 635px;
  max-width: 100%;
  margin-top: 50.02px;
}

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

@media (max-width: 800px) {
  .aviso {
    padding: 23.39px 15px 24.61px;
  }

  .aviso__titulo {
    width: 360px;
  }

  .aviso__texto {
    width: 340px;
    font-size: 16px;
    line-height: 22.4px;
  }

  .vaga {
    padding: 179.08px 25px 94.25px;
    background-image: url(fundo-vaga-celular.webp);
    background-position: 58.7034% 0%;
  }

  .vaga__logo {
    width: 225.66px;
  }

  .vaga__titulo {
    width: 302.5px;
    margin-top: 36.92px;
    font-size: 28px;
    line-height: 39.2px;
  }

  .vaga__oficial {
    width: 316px;
    margin-top: 19.87px;
    font-size: 18px;
    line-height: 25.2px;
  }

  .evento {
    gap: 15.3px;
    width: 340px;
    margin: 48.03px 0 0 1px;
    padding: 36.08px 10px 36.17px;
  }

  .evento::before {
    border-radius: 15px;
  }

  .evento__item {
    font-size: 16px;
    line-height: 22.4px;
  }

  .evento__item--data {
    margin-left: -1.6px;
  }

  .evento__item--horario {
    gap: 13.22px;
    margin-left: -2.6px;
  }

  .evento__item--local {
    gap: 12.75px;
    margin-left: -1.2px;
  }

  .plataforma {
    width: 340px;
    margin-top: 60.59px;
    padding: 38.27px 38px 0;
  }

  .plataforma__texto {
    width: 262px;
    font-size: 16px;
    line-height: 22.4px;
  }

  .plataforma__ate-la {
    width: 340px;
    max-width: calc(100% + 76px);
    margin-top: 20.14px;
    font-size: 16px;
    line-height: 22.4px;
  }

  .botao {
    width: 300px;
    max-width: calc(100% + 76px);
    margin-top: 39.83px;
  }

  .rodape {
    padding: 40px 15px 54.42px;
  }

  .rodape__aviso {
    width: 360px;
    margin-top: 40px;
  }

  .rodape__legal {
    width: 320px;
    margin-top: 10.61px;
  }

  .rodape__equipe {
    width: 320px;
    margin-top: 15.29px;
  }

  .rodape__linha {
    width: 340px;
    margin-top: 27.64px;
  }

  .rodape__termos {
    width: 320px;
    margin-top: 27.64px;
  }
}
