/**
 * Call To Action
 */


/** CTA **/

.cta {
  padding: 0.5rem 1rem;
  background-color: var(--brand-primary-color);
  color: var(--brand-white);
  transition: color 0.2s, background-color 0.2s;
  border-radius: 2px;
  position: relative;
  display: inline-block;
  line-height: 1.2;
}
.cta--arrow {
  padding: 0.5rem 1rem 0.5rem 2.167rem;
}
.cta--medium {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}
.cta--medium-arrow {
  padding: 1rem 1.5rem 1rem 3.3rem;
  font-size: 1.25rem;
}

/** CTA Secondary **/

.cta--secondary,
.cta--secondary-arrow,
.cta--secondary-medium,
.cta--secondary-medium-arrow {
  background-color: var(--brand-white);
  color: var(--brand-secondary-color);
  border: 1px solid var(--brand-primary-color);
}
.cta--secondary-arrow {
  padding: 0.5rem 1rem 0.5rem 2.167rem;
}
.cta--secondary-medium {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}
.cta--secondary-medium-arrow {
  padding: 1rem 2rem 1rem 4rem;
  font-size: 1.25rem;
}

/** Responsive **/

@media all and (min-width: 1300px) {
  .cta--medium,
  .cta--medium-arrow,
  .cta--secondary-medium,
  .cta--secondary-medium-arrow {
    font-size: 1.278rem;
  }
}

/** Before **/

.cta--arrow::before,
.cta--secondary-arrow::before,
.cta--medium-arrow::before,
.cta--secondary-medium-arrow::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: 0.2s;
}
.cta--arrow::before {
  left: 0.778rem;
  width: 16px;
  height: 14px;
  background-image: url('../../images/arrow--white.svg');
}
.cta--secondary-arrow::before {
  left: 0.778rem;
  width: 16px;
  height: 14px;
  background-image: url('../../images/arrow--primary-color.svg');
}
.cta--medium-arrow::before {
  left: 1.378rem;
  width: 22px;
  height: 14px;
  background-image: url('../../images/arrow-medium--white.svg');
}
.cta--secondary-medium-arrow::before {
  transform: translateY(-50%);
  left: 1.778rem;
  width: 22px;
  height: 14px;
  background-image: url('../../images/arrow-medium--primary-color.svg');
}

/** Hover **/

.cta:hover {
  background-color: var(--brand-secondary-color);
  text-decoration: none;
}
.cta--secondary:hover,
.cta--secondary-arrow:hover,
.cta--secondary-medium:hover,
.cta--secondary-medium-arrow:hover {
  background-color: var(--brand-primary-color);
  text-decoration: none;
  color: var(--brand-white);
}

/** Hover Before **/

.cta--arrow:hover::before,
.cta--secondary-arrow:hover::before {
  transform: translateY(-50%) translateX(2px);
}
.cta--medium-arrow:hover::before,
.cta--secondary-medium-arrow:hover::before {
  transform: translateY(-50%) translateX(4px);
}
.cta--arrow:hover::before {
  background-image: url('../../images/arrow--primary-color.svg');
}
.cta--secondary-arrow:hover::before {
  background-image: url('../../images/arrow--secondary-color.svg');
}
.cta--medium-arrow:hover::before {
  background-image: url('../../images/arrow-medium--primary-color.svg');
}
.cta--secondary-medium-arrow:hover::before {
  background-image: url('../../images/arrow-medium--secondary-color.svg');
}

/** Others **/

.cta__wrapper {
  display: flex;
}
.cta--center,
.file--center {
  margin-left: auto;
  margin-right: auto;
}
.cta--right,
.file--right {
  margin-left: auto;
}
.cta--left,
.file--left {
  margin-right: auto;
}
.cta--ot {
  border: 0 !important;
  color: var(--brand-white) !important;
}
.cta--ot:hover {
  background-color: var(--brand-secondary-color) !important;
  text-decoration: none !important;
}
