footer {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  background-color: var(--color-primary);
  overflow: visible;
}

.footer__main {
  display: grid;
  grid-template-columns: auto 1fr max(25%, 300px);
  padding: 60px 0;
}

.footer__logo-wrapper {
  max-width: 150px;
  padding-bottom: 40px;
}

.footer__contacts-text {
  font-family: var(--font-secondary);
  font-weight: 300;
  line-height: 1.5rem;
  color: var(--white);
}

.footer__link a {
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s ease-in-out;
}

.footer__link:not(:last-of-type) {
  padding-bottom: 10px;
}

.footer__links-section-wrapper {
  display: flex;
  justify-content: center;
  column-gap: clamp(20px, 6%, 80px);
}

.footer__column-wrapper-socials {
  justify-self: left;
}

.footer__title {
  display: block;
  color: var(--color-secondary);
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  padding-bottom: 20px;
}

.footer__copyright {
  padding: 0 0 20px 0;
  text-align: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 300;
}

.footer-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 2.5rem 3.75rem;
  border-radius: 20px;

  background-color: var(--color-secondary);
}

.footer-cta__main-text,
.footer-cta__text {
  color: var(--white);
}

.footer-cta__main-text {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-cta__text {
  font-size: 1.4rem;
  font-weight: 100;
}

.footer-cta__btn-primary {
  color: var(--color-primary);
  background-color: var(--white);
}

.footer-cta__btn-secondary {
  position: relative;
  color: var(--white);
  margin-top: 3px;
  font-size: 18px;
}

.footer-cta__btn-secondary::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}

.footer-cta__btn-secondary:hover::before {
  transform: translateX(-50%) scale(1.05);
}

@media screen and (max-width: 1399px) {
  .footer-cta__main-text {
    font-size: 2rem;
  }
  .footer-cta__text {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 1199px) {
  .footer__main {
    grid-template-columns: auto 1fr;
    grid-template-rows: repeat(2, auto);
    row-gap: 40px;
  }
  .footer__column-wrapper-socials {
    grid-column: -1 / -2;
    grid-row: -1 / -2;
    justify-self: end;
  }
  .footer__column-wrapper:nth-of-type(2) {
    justify-self: end;
  }
  .footer__links-section-wrapper {
    column-gap: 30px;
  }
  .footer__links-wrapper,
  .footer__column-wrapper-socials {
    min-width: 200px;
  }
}

@media screen and (max-width: 991px) {
  .footer-cta {
    padding: 2rem 3.25rem;
  }
  .footer-cta__main-text {
    font-size: 1.75rem;
  }
  .footer-cta__text {
    font-size: 1.15rem;
  }
  .footer-cta__btn-primary {
    padding: 12px 20px;
  }
}

@media screen and (max-width: 767px) {
  .footer__main {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    justify-content: center;
  }
  .footer__links-section-wrapper {
    flex-direction: column;
    row-gap: 30px;
  }
  .footer__column-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .footer__column-wrapper-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: auto;
    grid-row: auto;
    justify-self: unset;
  }
  .footer__links-wrapper {
    min-width: unset;
  }
  .footer__link {
    text-align: center;
  }
  .footer-cta {
    flex-direction: column;
    row-gap: 1.875rem;
  }
  .footer-cta__main-text,
  .footer-cta__text {
    text-align: center;
  }
}
