.footer {
  margin-top: 75px;
  border-top: 1px solid var(--color-primary);

  @media (min-width: 768px) {
    margin-top: 150px;
  }

  &.mt-0 {
    margin-top: 0;
  }
}

.footer-top {
  display: flex;
  gap: 30px;
  padding: 45px 0 30px 0;
  flex-direction: column;

  @media (min-width: 768px) {
    flex-direction: row;
  }

  a {
    text-decoration: none;

    &:hover, &:focus {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
}

.footer-top-brand {
  padding-right: 100px;

  svg {
    margin-bottom: 25px;
  }
}


.footer-top-section {
  h2 {
    font-size: 28px; 
    color: var(--color-primary);
    margin: 15px 0 20px 0;
  }

  font-size: 16px;

  flex: 1 1 100%;
}

.footer-bottom {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 20px;
  flex-direction: column;

  @media (min-width: 768px) {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  a {
    text-decoration: none;

    &:hover, &:focus {
      text-decoration: underline;
    }
  }
}

.footer-bottom-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px 30px;

  @media (min-width: 576px) {
    flex-direction: row;
  }
}

.footer-top-contact {
  a {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 14px;
    padding: 5px 0;

    svg {
      flex: 0 0 30px;

      path {
        fill: var(--color-primary);
      }
    }

    span {
      display: block;
      flex: 1 1 auto;
    }

    &:hover, &:focus {
      color: var(--color-primary);

      svg {
        path {
          fill: var(--color-primary);
        }
      }
    }
  }
}
